mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
LIBRETRO: reorder frameskip_type tests
This commit is contained in:
parent
63fc1d4609
commit
f6010ebdaf
@ -672,10 +672,10 @@ void retro_run(void) {
|
||||
}
|
||||
|
||||
/* Determine frameskip need based on settings */
|
||||
if (frameskip_type == 1)
|
||||
skip_frame = !(current_frame % frameskip_no == 0);
|
||||
else if ((frameskip_type == 2) || (performance_switch & PERF_SWITCH_ENABLE_AUTO_FRAMESKIP))
|
||||
if ((frameskip_type == 2) || (performance_switch & PERF_SWITCH_ENABLE_AUTO_FRAMESKIP))
|
||||
skip_frame = (audio_status & AUDIO_STATUS_BUFFER_UNDERRUN);
|
||||
else if (frameskip_type == 1)
|
||||
skip_frame = !(current_frame % frameskip_no == 0);
|
||||
else if (frameskip_type == 3)
|
||||
skip_frame = (retro_audio_buff_occupancy < frameskip_threshold);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user