mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Cut down on runloop_ctl calls inside gfx/drivers
This commit is contained in:
parent
b22cfcf060
commit
57f8c637bf
@ -1340,8 +1340,8 @@ static bool gl_frame(void *data, const void *frame,
|
||||
if (
|
||||
video_info->black_frame_insertion
|
||||
&& !input_driver_is_nonblock_state()
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_SLOWMOTION, NULL)
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
||||
&& !video_info->runloop_is_slowmotion
|
||||
&& !video_info->runloop_is_paused)
|
||||
{
|
||||
video_context_driver_swap_buffers(video_info);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
@ -1933,8 +1933,8 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
if (
|
||||
video_info->black_frame_insertion
|
||||
&& !input_driver_is_nonblock_state()
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_SLOWMOTION, NULL)
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
||||
&& !video_info->runloop_is_slowmotion
|
||||
&& !video_info->runloop_is_paused)
|
||||
{
|
||||
vulkan_inject_black_frame(vk, video_info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user