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

Remove primary cache #97

Merged
merged 6 commits into from
Jan 17, 2024
Merged

Remove primary cache #97

merged 6 commits into from
Jan 17, 2024

Conversation

campital
Copy link
Contributor

Removing the primary cache yields a very significant performance improvement on all platforms (90% reduction in memory usage, CPU usage is no longer 100%). The cache does not seem to serve any actual purpose. Memory viewer GUI is now much more usable on Windows, though there remains some sluggishness due to the high memory refresh rate.

Also fixed a crash bug in DlgAddWatchEntry.cpp, an unhooking bug that occurred when MEM2 memory watches were still present while loading a game without MEM2, and a bug that prevented DME from discovering Dolphin when closed and relaunched.

Previously, DME constantly unhooked when a watch entry from Wii MEM2 was present while a GameCube game was running
Copy link
Collaborator

@dreamsyntax dreamsyntax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; Need to do my own testing with these builds.

.gitignore Outdated Show resolved Hide resolved
@dreamsyntax
Copy link
Collaborator

dreamsyntax commented Jan 17, 2024

Did testing on linux, wow. It runs just as well and less memory (30mb avg vs 100mb avg)
I did a real world test with my fairly large DMWs
Searching and clearing results uses about the same as expected.
Scrolling and editing in the memory view works just fine.

I'll just need to do some tests on Windows, then once you restore gitignore line I think we're good to merge.

Copy link
Collaborator

@dreamsyntax dreamsyntax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finished my test on Windows.
15mb vs 75mb (old)
Performance is just as good. - And actually now navigating the memory viewer is much smoother for me.

@dreamsyntax dreamsyntax merged commit 84bd8c3 into aldelaro5:master Jan 17, 2024
@dreamsyntax dreamsyntax added this to the 1.0 milestone Mar 6, 2024
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