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

Improve performance #57

Closed
alloncm opened this issue Sep 18, 2021 · 1 comment · Fixed by #62
Closed

Improve performance #57

alloncm opened this issue Sep 18, 2021 · 1 comment · Fixed by #62
Labels
enhancement New feature or request

Comments

@alloncm
Copy link
Owner

alloncm commented Sep 18, 2021

In order to run on weaker hardware I want to improve performance as much as I can.

In order to do that I opened a new branch called feature/mt, a PR will be opened soon.

In this branch I will convert the program to 2 threads (or maybe 3) in order to move the IO from the logic thread.
When doing this I need to figure out how to draw properly without busy waiting in the IO thread for new frame buffer from the emulation thread while not making the window unresponsive in case the PPU is turned off.

This be achievable with blocking function that has a timeout, when the timeout is set the function will update the UI (accept new events) and than block again for the amount of time.

@alloncm alloncm added the enhancement New feature or request label Sep 18, 2021
@alloncm
Copy link
Owner Author

alloncm commented Sep 24, 2021

When the APU is off it keeps resetting all its channels, maybe adding a flag whether it should reset them on not (based on if its just turned off) or maybe reset them upon turning off (like the PPU).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant