DeamonHunter / AWBW-Replay-Player

Advance Wars By Web Replay Player
MIT License
38 stars 5 forks source link

High GPU usage #137

Open theherolink opened 1 year ago

theherolink commented 1 year ago

According to task manager, the replay player uses between 40% and 70% of my GPU, and has moderate to very high power usage. (Geforce GTX 860M) There is no difference between having the program open (idle, background) and actually using it. (importing replays and viewing animations) When I try to force it to run only on Integrated Graphics (Intel i7 4710HQ), it will still run on the GPU. This program should go reasonably easy on resources, no?

DeamonHunter commented 1 year ago

I hazard to guess that this is probably because the default is set up such that it tries to target 2x monitor refresh rate. Which may be forcing it to use more gpu time.

If you head to %appdata%\AWBWReplayPlayer\ and open framework.ini, you can change FrameSync to VSync which should half the max framerate.

theherolink commented 10 months ago

Is that solution supposed to work while running the application? Should it be changing anything 'on the go'? Because the file is overwritten when I open the application. I still had framework.ini open in Notepad++ while I opened the replay player and it said the file has been modified by another program. Replay Player is still eating away at my GPU. It says 30% while I'm in the menu, and 40% to 70% while viewing a replay, just like before. If this is going to be difficult to solve, don't sweat it. I can keep using the replay viewer on the website.

DeamonHunter commented 9 months ago

It should work as long as the application is not running at the time. (It saves on close which will overwrite the file.) That being said, I'm adding an option in the menu in order to adjust refresh rate in the next update.

However the full fix is probably to update the framework I'm using as it is majorly out of date now, and the people behind the framework have done a lot of improvements. This however is not something that is coming soon.

theherolink commented 9 months ago

This also didn't fix the problem, not even a little bit. The 'Unlimited' option did however push GPU load up to 90% No worries, I will just use the replay viewer on the website.