Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run processor step in another thread #1

Open
CaffeineViking opened this issue Jan 6, 2021 · 0 comments
Open

Run processor step in another thread #1

CaffeineViking opened this issue Jan 6, 2021 · 0 comments

Comments

@CaffeineViking
Copy link
Owner

I didn't realize this back then, but the reason the emulation can sometimes slow down to a halt is simply because we're running the processor.step() in tandem with the display (which has v-sync). The simple solution is to just run the processor.step() in a new thread and keep the display and processor timelines separate. Once the processor has a frame to display, it should just poke a flag and the renderer should grab the last display buffer from memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant