Skip to content

Commit

Permalink
Merge pull request #1 from MaroonBrian1928/preemptiveframes
Browse files Browse the repository at this point in the history
Add preemptive frames in ES
  • Loading branch information
MaroonBrian1928 authored Jun 13, 2024
2 parents c24a316 + fe0701a commit fa96cb4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,15 @@ def update_handheld_config(guid, name, board):

# Run-ahead option (latency reduction)
retroarchConfig['run_ahead_enabled'] = 'false'
retroarchConfig['preemptive_frames_enable'] = 'false'
retroarchConfig['run_ahead_frames'] = '0'
retroarchConfig['run_ahead_secondary_instance'] = 'false'
if system.isOptSet('runahead') and int(system.config['runahead']) >0:
if (not system.name in systemNoRunahead):
retroarchConfig['run_ahead_enabled'] = 'true'
if system.isOptSet('preemptiveframes') and system.getOptBoolean('preemptiveframes') == True:
retroarchConfig['preemptive_frames_enable'] = 'true'
else:
retroarchConfig['run_ahead_enabled'] = 'true'
retroarchConfig['run_ahead_frames'] = system.config['runahead']
if system.isOptSet('secondinstance') and system.getOptBoolean('secondinstance') == True:
retroarchConfig['run_ahead_secondary_instance'] = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ shared:
choices:
"On": 1
"Off": 0
preemptiveframes:
submenu: LATENCY REDUCTION
prompt: USE PRE-EMPTIVE FRAMES
description: Use preemptive frames instead of run-ahead. Only runs ahead when controller state changes.
choices:
"On": "true"
"Off": "false"
video_frame_delay_auto:
submenu: LATENCY REDUCTION
prompt: AUTOMATIC FRAME DELAY
Expand Down Expand Up @@ -322,10 +329,10 @@ shared:
"hidden": "hidden"

global:
shared: [powermode, tdp, videomode, ratio, shaderset, smooth, integerscale, bezel, bezel_stretch, hud, hud_corner, bezel.tattoo, bezel.tattoo_corner, bezel.tattoo_file, bezel.resize_tattoo, ai_service_enabled, ai_target_lang, ai_service_url, ai_service_pause, rewind, runahead, secondinstance, video_frame_delay_auto, vrr_runloop_enable, video_threaded, rumble_gain]
shared: [powermode, tdp, videomode, ratio, shaderset, smooth, integerscale, bezel, bezel_stretch, hud, hud_corner, bezel.tattoo, bezel.tattoo_corner, bezel.tattoo_file, bezel.resize_tattoo, ai_service_enabled, ai_target_lang, ai_service_url, ai_service_pause, rewind, runahead, preemptiveframes, secondinstance, video_frame_delay_auto, vrr_runloop_enable, video_threaded, rumble_gain]

libretro:
shared: [powermode, tdp, videomode, ratio, shaderset, smooth, integerscale, bezel, bezel_stretch, hud, hud_corner, bezel.tattoo, bezel.tattoo_corner, bezel.tattoo_file, bezel.resize_tattoo, ai_service_enabled, ai_target_lang, ai_service_url, ai_service_pause, runahead, secondinstance, video_frame_delay_auto, vrr_runloop_enable, video_threaded, rumble_gain, audio_volume, bordersmode]
shared: [powermode, tdp, videomode, ratio, shaderset, smooth, integerscale, bezel, bezel_stretch, hud, hud_corner, bezel.tattoo, bezel.tattoo_corner, bezel.tattoo_file, bezel.resize_tattoo, ai_service_enabled, ai_target_lang, ai_service_url, ai_service_pause, runahead, preemptiveframes, secondinstance, video_frame_delay_auto, vrr_runloop_enable, video_threaded, rumble_gain, audio_volume, bordersmode]
cfeatures:
gfxbackend:
archs_include: [x86, x86_64, bcm2711, bcm2712]
Expand Down

0 comments on commit fa96cb4

Please sign in to comment.