-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bring back MemoryWatcher, but without CoreTiming #8073
Conversation
This reverts commit 0c02e77.
Can you squash the "apply suggestions" commit into the relevant commits please? |
Well, since the issues that caused MemoryWatcher to be removed in the first place are now fixed and the feature is actually used, I don't see a reason against adding it back. |
void OnFrameEnd() | ||
{ | ||
#ifdef USE_MEMORYWATCHER | ||
s_memory_watcher->Step(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This crashes when playing a fifolog because s_memory_watcher hasn't been initialized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the memory watcher initialization should be moved from CpuThread to EmuThread?
This reverts #8050, and re-applies #4967, changing the MemoryWatcher to step during EndField rather than be tied to CoreTiming.