From 6f010c20f557d2e4b3dc26359ac1908b5b3a65df Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Mon, 25 Dec 2023 22:17:07 +0800 Subject: [PATCH] core: remove flycast hack I think this was only relevant when END_OF_RENDER_VIDEO was in use; this doesn't seem to affect flycast's END_OF_RENDER_TSP generation. The former is definitely a flycast bug. --- holly/core.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/holly/core.cpp b/holly/core.cpp index 33347ca..e1ef37a 100644 --- a/holly/core.cpp +++ b/holly/core.cpp @@ -81,16 +81,10 @@ void core_start_render(uint32_t frame_ix, uint32_t num_frames) frame_ix, num_frames); } -static bool flycast_is_dumb = false; - void core_wait_end_of_render_video() { - if (!flycast_is_dumb) { - flycast_is_dumb = true; - } else { - while ((system.ISTNRM & ISTNRM__END_OF_RENDER_TSP) == 0); - system.ISTNRM = ISTNRM__END_OF_RENDER_TSP; - } + while ((system.ISTNRM & ISTNRM__END_OF_RENDER_TSP) == 0); + system.ISTNRM = ISTNRM__END_OF_RENDER_TSP; } void core_wait_end_of_render_video(uint32_t frame_ix, uint32_t num_frames)