mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 04:05:45 +00:00
Fast CPU Time & Improved Fast GPU Time (#109)
needs android setting Signed-off-by: swurl <swurl@swurl.xyz> Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/109 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
ed47533be8
commit
b78089e978
14 changed files with 330 additions and 88 deletions
|
@ -170,7 +170,7 @@ android {
|
|||
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||
)
|
||||
|
||||
abiFilters("arm64-v8a", "x86_64")
|
||||
abiFilters("arm64-v8a")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting {
|
|||
FASTMEM_EXCLUSIVES("cpuopt_fastmem_exclusives"),
|
||||
CORE_SYNC_CORE_SPEED("sync_core_speed"),
|
||||
RENDERER_USE_SPEED_LIMIT("use_speed_limit"),
|
||||
USE_FAST_CPU_TIME("use_fast_cpu_time"),
|
||||
USE_DOCKED_MODE("use_docked_mode"),
|
||||
USE_AUTO_STUB("use_auto_stub"),
|
||||
RENDERER_USE_DISK_SHADER_CACHE("use_disk_shader_cache"),
|
||||
|
|
|
@ -35,6 +35,9 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
|
|||
PERF_OVERLAY_POSITION("perf_overlay_position"),
|
||||
MEMORY_LAYOUT("memory_layout_mode"),
|
||||
FSR_SHARPENING_SLIDER("fsr_sharpening_slider"),
|
||||
FAST_CPU_TIME("fast_cpu_time"),
|
||||
FAST_GPU_TIME("fast_gpu_time"),
|
||||
|
||||
CABINET_APPLET("cabinet_applet_mode"),
|
||||
CONTROLLER_APPLET("controller_applet_mode"),
|
||||
DATA_ERASE_APPLET("data_erase_applet_mode"),
|
||||
|
|
|
@ -496,6 +496,31 @@ abstract class SettingsItem(
|
|||
descriptionId = R.string.use_fast_gpu_time_description
|
||||
)
|
||||
)
|
||||
put(
|
||||
SingleChoiceSetting(
|
||||
IntSetting.FAST_GPU_TIME,
|
||||
titleId = R.string.fast_gpu_time,
|
||||
descriptionId = R.string.fast_gpu_time_description,
|
||||
choicesId = R.array.gpuEntries,
|
||||
valuesId = R.array.gpuValues
|
||||
)
|
||||
)
|
||||
put(
|
||||
SwitchSetting(
|
||||
BooleanSetting.USE_FAST_CPU_TIME,
|
||||
titleId = R.string.use_fast_cpu_time,
|
||||
descriptionId = R.string.use_fast_cpu_time_description
|
||||
)
|
||||
)
|
||||
put(
|
||||
SingleChoiceSetting(
|
||||
IntSetting.FAST_CPU_TIME,
|
||||
titleId = R.string.fast_cpu_time,
|
||||
descriptionId = R.string.fast_cpu_time_description,
|
||||
choicesId = R.array.clockNames,
|
||||
valuesId = R.array.clockValues
|
||||
)
|
||||
)
|
||||
put(
|
||||
SwitchSetting(
|
||||
BooleanSetting.RENDERER_REACTIVE_FLUSHING,
|
||||
|
|
|
@ -403,6 +403,7 @@ class SettingsFragmentPresenter(
|
|||
add(HeaderSetting(R.string.veil_renderer))
|
||||
add(BooleanSetting.FRAME_INTERPOLATION.key)
|
||||
add(BooleanSetting.RENDERER_FAST_GPU.key)
|
||||
add(IntSetting.FAST_GPU_TIME.key)
|
||||
add(IntSetting.RENDERER_SHADER_BACKEND.key)
|
||||
add(IntSetting.RENDERER_NVDEC_EMULATION.key)
|
||||
add(IntSetting.RENDERER_ASTC_DECODE_METHOD.key)
|
||||
|
@ -411,6 +412,8 @@ class SettingsFragmentPresenter(
|
|||
add(IntSetting.RENDERER_OPTIMIZE_SPIRV_OUTPUT.key)
|
||||
|
||||
add(HeaderSetting(R.string.veil_misc))
|
||||
add(BooleanSetting.USE_FAST_CPU_TIME.key)
|
||||
add(IntSetting.FAST_CPU_TIME.key)
|
||||
add(BooleanSetting.USE_LRU_CACHE.key)
|
||||
add(BooleanSetting.CORE_SYNC_CORE_SPEED.key)
|
||||
add(IntSetting.MEMORY_LAYOUT.key)
|
||||
|
|
|
@ -33,6 +33,18 @@
|
|||
<item>2</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="clockNames">
|
||||
<item>@string/clock_base</item>
|
||||
<item>@string/clock_boost</item>
|
||||
<item>@string/clock_fast</item>
|
||||
</string-array>
|
||||
|
||||
<integer-array name="clockValues">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="languageNames">
|
||||
<item>@string/language_brazilian_portuguese</item>
|
||||
<item>@string/language_british_english</item>
|
||||
|
@ -441,4 +453,16 @@
|
|||
<item>0</item>
|
||||
<item>1</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="gpuEntries">
|
||||
<item>@string/gpu_low</item>
|
||||
<item>@string/gpu_medium</item>
|
||||
<item>@string/gpu_high</item>
|
||||
</string-array>
|
||||
|
||||
<integer-array name="gpuValues">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</integer-array>
|
||||
</resources>
|
||||
|
|
|
@ -74,6 +74,10 @@
|
|||
<string name="use_sync_core_description">Synchronize the core tick speed to the maximum speed percentage to improve performance without altering the game\'s actual speed.</string>
|
||||
<string name="use_lru_cache">Enable LRU Cache</string>
|
||||
<string name="use_lru_cache_description">Enable or disable the Least Recently Used (LRU) cache, increasing performance by saving CPU process usage. Some games have issue with it, notably TotK 1.2.1, so disable if the game doesn\'t boot or crashes randomly.</string>
|
||||
<string name="use_fast_cpu_time">Fast CPU Time</string>
|
||||
<string name="use_fast_cpu_time_description">Forces the emulated CPU to run at a higher clock, reducing certain FPS limiters. This option is hacky and may cause issues, and weaker CPUs may see reduced performance.</string>
|
||||
<string name="fast_cpu_time">CPU Clock</string>
|
||||
<string name="fast_cpu_time_description">Use Boost (1700MHz) to run at the Switch\'s highest native clock, or Fast (2000MHz) to run at 2x clock.</string>
|
||||
<string name="memory_layout">Memory Layout</string>
|
||||
<string name="memory_layout_description">(EXPERIMENTAL) Change the emulated memory layout. This setting will not increase performance, but may help with games utilizing high resolutions via mods. Do not use on phones with 8GB of RAM or less.</string>
|
||||
|
||||
|
@ -408,6 +412,8 @@
|
|||
<string name="renderer_asynchronous_shaders_description">Compiles shaders asynchronously. This may reduce stutters but may also introduce glitches.</string>
|
||||
<string name="use_fast_gpu_time">Use Fast GPU Time</string>
|
||||
<string name="use_fast_gpu_time_description">Forces most games to run at their highest native resolution. This option is hacky and may cause issues.</string>
|
||||
<string name="fast_gpu_time">GPU Overclock Factor</string>
|
||||
<string name="fast_gpu_time_description">Use 128 for maximal performance and 512 for maximal graphics fidelity.</string>
|
||||
<string name="renderer_reactive_flushing">Use reactive flushing</string>
|
||||
<string name="renderer_reactive_flushing_description">Improves rendering accuracy in some games at the cost of performance.</string>
|
||||
<string name="use_disk_shader_cache">Disk shader cache</string>
|
||||
|
@ -704,6 +710,16 @@
|
|||
<string name="memory_6gb">6GB (Unsafe)</string>
|
||||
<string name="memory_8gb">8GB (Unsafe)</string>
|
||||
|
||||
<!-- CPU clock speeds-->
|
||||
<string name="clock_base">Base (1000MHz)</string>
|
||||
<string name="clock_boost">Boost (1700MHz)</string>
|
||||
<string name="clock_fast">Fast (2000MHz)</string>
|
||||
|
||||
<!-- GPU overclock factors -->
|
||||
<string name="gpu_low">Low (128)</string>
|
||||
<string name="gpu_medium">Medium (256)</string>
|
||||
<string name="gpu_high">High (512)</string>
|
||||
|
||||
<!-- Language Names -->
|
||||
<string name="language_japanese" translatable="false">日本語</string>
|
||||
<string name="language_english" translatable="false">English</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue