Graphical Glitch After backup
Closed this issue · 2 comments
Describe the bug
Reseting the state causes graphics to fail.
To Reproduce
Steps to reproduce the behavior:
very hard to reproduce in the current state. The original issue provides a script to reproduce the issue.
Expected behavior
The NES emulator should function the same after many calls to reset. The game should perfectly restore to its frozen point in time.
An initial reason for the current (esoteric) solution for backups between CPU and PPU namespaces was that circular dependencies between headers in C++ is problematic. Meaning that CPU and PPU couldn't have an objected oriented definition because they call each other. However, this solution describes an effective technique to resolve circular dependencies that will work well for this use case.
Issue resolved in 3.0.0