Skip to content

Commit

Permalink
Update retroarch to latest & optimize (#82)
Browse files Browse the repository at this point in the history
disable vsync
disable keep aspect ratio
  • Loading branch information
tiopex authored Jan 10, 2024
1 parent eb3ab10 commit cd08c2a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions package/retroarch/0002-disable-vsync-aspect-ratio.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
diff --git a/Makefile.miyoo b/Makefile.miyoo
index 2880af10ad..f1a785f818 100644
--- a/Makefile.miyoo
+++ b/Makefile.miyoo
@@ -124,7 +124,7 @@ DEF_FLAGS += -I. -Ideps -Ideps/stb -DMIYOO=1 -DDINGUX -MMD
DEF_FLAGS += -Wall -Wno-unused-variable -flto
DEF_FLAGS += -std=gnu99 -D_GNU_SOURCE
LIBS := -ldl -lz -lrt -pthread -lasound
-CFLAGS :=
+CFLAGS := -Ofast -fdata-sections -ffunction-sections -fsingle-precision-constant -fno-PIC -flto
CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS
ASFLAGS :=
LDFLAGS := -Wl,--gc-sections
diff --git a/config.def.h b/config.def.h
index 25f0dbe463..a53076361c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -356,7 +356,7 @@
#define DEFAULT_DISABLE_COMPOSITION false

/* Video VSYNC (recommended) */
-#define DEFAULT_VSYNC true
+#define DEFAULT_VSYNC false

/* Vulkan specific */
#define DEFAULT_MAX_SWAPCHAIN_IMAGES 3
@@ -513,7 +513,7 @@
#if defined(DINGUX)
/* Enables aspect ratio correction (1:1 PAR) when
* using the IPU hardware scaler in Dingux devices */
-#define DEFAULT_DINGUX_IPU_KEEP_ASPECT true
+#define DEFAULT_DINGUX_IPU_KEEP_ASPECT false
/* Sets image filtering method when using the
* IPU hardware scaler in Dingux devices */
#if defined(RETROFW)
4 changes: 2 additions & 2 deletions package/retroarch/retroarch.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RETROARCH_VERSION = 1.16.0.3
RETROARCH_SITE = $(call github,libretro,RetroArch,v$(RETROARCH_VERSION))
RETROARCH_VERSION = 35e140ae0840b702a166ab5f1e35be32d065d6b5
RETROARCH_SITE = $(call github,libretro,RetroArch,$(RETROARCH_VERSION))
RETROARCH_LICENSE = GPL-3.0
RETROARCH_LICENSE_FILES = COPYING
RETROARCH_DEPENDENCIES = host-pkgconf sdl sdl_image sdl_mixer sdl_sound sdl_ttf freetype
Expand Down

0 comments on commit cd08c2a

Please sign in to comment.