Skip to content

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