AmatCoder / mednaffe

A front-end (GUI) for mednafen emulator
GNU General Public License v3.0
429 stars 35 forks source link

High CPU usage and unresponsiveness during startup #147

Closed nosystemworks closed 2 years ago

nosystemworks commented 2 years ago

Tallyho! I'm sorry if this is supposed to be focused on pure data and hard information, I'm new to this. Suddenly the program is very slow to start (with a freeze "Svarar inte" means "Not responding") and I have no idea why. The task manager initially reports the following values on every start of Mednaffe:

Skärmbild 2022-05-08 154346

...then the RAM usage continues to ramp up with a couple of MB's per second to around 70 MB where Mednaffe will finally show up on screen and CPU falls down to 0% and RAM down to about 35 MB and everything works fine from there.

I'm on Windows 11 21H2, OS-ver 22000.652 and I'm using Mednaffe 0.9.2. I'm using a Ryzen 5 3600 and a RX 6700 XT.

nosystemworks commented 2 years ago

Well then, I'm a complete doofus. :D I figured it out. I had too heavy artwork. I batch resized everything from 1694x1400 down to 800x661 and went from ~3MB to ~500kB per image and now Mednaffe loads lightning fast again.