mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
Under the wrapper the widgets turned off tear down once the video thread has run a fence queued behind the frame in flight: frames after the worker is taken away draw none, and the teardown, on the main thread as before, runs from the runloop once the fence has passed. An init asked for in between waits for it and is retried after. A deinit that has waited out the frame itself runs a pending teardown first. main_exit() no longer waits to clear a flag only it reads. threaded_video's threaded-off lane turns the widgets off, and off and straight back on, while a frame draws them: they must not go under it, the toggle must not wait for it, and they must come back.
8 lines
278 B
Plaintext
8 lines
278 B
Plaintext
# Waits on the video thread allowed per file, as tools/wait_budget.sh
|
|
# counts them: calls of video_thread_wait_idle() and
|
|
# video_thread_run_blocking(). A ceiling that only comes down.
|
|
#
|
|
# file allowed
|
|
gfx/video_driver.c 5
|
|
retroarch.c 3
|