Skip to content

Development "getting started"? #886

Answered by DirtyHairy
dreavjr asked this question in Q&A
Discussion options

You must be logged in to vote

The loop you are looking for is in OSystem::mainLoop and OSystem::dispatchEmulation. The main loop dispatches the EmulationWorker to emulate a single frame and then renders it to the screen. After that, it sleeps until the virtual clock has caught up with the real one and then goes on to render the next frame.

The actual emulation runs on a separate thread. If the main thread blocks too long while rendering the current frame it will emulate the next frame while the main thread is still blocking.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@dreavjr
Comment options

@thrust26
Comment options

@dreavjr
Comment options

Answer selected by dreavjr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #884 on April 05, 2022 20:13.