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

Change the APU to use time-tracking #60

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zstewar1
Copy link
Contributor

Update the APU to use time-tracking to allow it to calculate certain parts of samples only when needed. Also update the time tracking for things like envelope and sweep to avoid having separate counters for all of them.

This change also adds a context to memory access. Currently the context just provides the time of the memory access, but it could be used to track which component is accessing memory if that ever becomes useful for handling simultaneous memory accesses.

Time tracking on memory may also be useful for rollback systems, since it could allow us to reduce the amount of things that need to be cloned in order to implement rollback.

@ciaran2
Copy link
Owner

ciaran2 commented Feb 25, 2024

Checked this with Pokemon Silver and it seems like the envelopes don't work correctly. Notes that are supposed to release just sustain indefinitely until the next trigger.

@zstewar1
Copy link
Contributor Author

zstewar1 commented Feb 26, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants