aldelaro5 / dolphin-memory-engine

A RAM search made specifically to search, monitor and edit the Dolphin emulator's emulated memory
MIT License
169 stars 39 forks source link

Program is slow and laggy to the point of being unusable #114

Closed SlyCooperReloadCoded closed 7 months ago

SlyCooperReloadCoded commented 7 months ago

For many years I was using a very old version of this tool, and it worked great. However, after updating to 0.9.0, an issue started happening where 99.99% of the times I open the tool, it starts lagging HARD. Clicking on any button in the GUI takes upwards of 10 seconds. Dragging the window around my screen takes ages. Typing something into the text box can take minutes. Changed/Unchanged scans aren't worth doing. Very rarely it'll be full speed with no issues whatsoever when opened, but then I'll close it and open it again, and it's back to its laggy self. This is even true with a completely empty addresses list.

The program itself isn't actually doing anything to warrant the slowness, like generating temp files or using 100% of my CPU, in fact Task Manager shows it's not doing anything at all. Even when I laggily type into the text box, it's still using only 6.7% of my CPU, 144 MB of RAM, and 0% Disk usage.

PC specs:

Definitely not a machine it should be lagging on. I even went to the extreme of setting all the timer/address update settings to very high amounts of time, like 10000 ms, but it made no difference. Plus, if it's not laggy on rare occasions, any user setting can't be the issue. I don't see any generated logs so if there's any other info I could give, I will.

aldelaro5 commented 7 months ago

It seems 0.9.0 isn't the latest version, I recall this was reported by someone else too.

Try with this version and let us know: https://github.com/aldelaro5/dolphin-memory-engine/releases/tag/v1.0.0

SlyCooperReloadCoded commented 7 months ago

Well, it was the latest when I updated, didn't see the update. I'll use this for a while and see if it ever lags again. Due to it sometimes not lagging, one day of testing isn't enough to say it's fixed or not fixed.

dreamsyntax commented 7 months ago

Fwiw, you should also be seeing this in 0.5.0

https://github.com/aldelaro5/dolphin-memory-engine/issues/67

Specifically from my tests: https://github.com/aldelaro5/dolphin-memory-engine/issues/67#issuecomment-1790276368

I kind of suspect the issue starts after Win 10 21H1

cristian64 commented 7 months ago

The fact that the application can be laggy even when there are not addresses in the watch list is odd.

Some questions:

Things that would be interesting to see as well:

dreamsyntax commented 7 months ago

The fact that the application can be laggy even when there are not addresses in the watch list is odd.

Some questions:

  • Do you have any other system available that you can test on?
  • Does it perform any better if running with elevated permissions?
  • What if the auto-hook mechanism is unticked?
  • Does it make any difference when Dolphin is present vs not present?
  • Does it make any difference when Dolphin is idling vs running a game?

Things that would be interesting to see as well:

  • The flame graph when executed in VTune or equivalent
  • The output in Windows' Process Monitor, in case there is any action that is failing or timing out for some reason
  • The output in Windows' Event Viewer

Its very common, I can reproduce it in windows only. This users issue lines up with the other issue. I will be curious to see if 1.0.0 has it or not given the cache removal.

Has nothing to do with any of the new features as its present in 0.5.0, and probably 0.3.0 too.

Open order seems to matter, but doesnt guarantee it wont lag. See the linked issue comment.

SlyCooperReloadCoded commented 7 months ago

Well, I've been using it for a while, and the issue seems to be gone. Good, because I've been really needing it, and playing no-lag roulette was getting tiring.