Skip to main content
Topic: [bug r2795] CPU usage more than 90% (Read 2863 times) previous topic - next topic

[bug r2795] CPU usage more than 90%

r2795 GDI, SDL
When I start simutrans, CPU load is always more than 90% and can't play game anymore.


[EDIT]
I tested r2799.
It is not over 90% but still more than 50%. Fast forward and pause are not heavy, but normal state is too heavy for me.
Simutrans 102.2 eats only 10%.

Re: [bug r2795] CPU usage more than 90%

Reply #1
Tested in r2809.

In normal state, it is better, thank you.
But pause mode has big problem. Is is very laggy and dragging window in not possible,

[EDIT]
Tested in r2812.
Pause problem was solved.

But totaly in normal state, it's laggy compared to 102.2.
In large maps, scroll dragging is laggy and if I playing with zoom out map, simutrans don't response for a long time. This problem often happen.
I tested  same game with my compiled 102.2, but it doesn't have such a problem.

Re: [bug r2795] CPU usage more than 90%

Reply #2
Yes , that is known. The older reduces the frame rate faster to keep simulooü counts up (15fps vs. 25fps). I am aware of the problem.

Re: [bug r2795] CPU usage more than 90%

Reply #3
Tested in r2818 and it works well again. Thank you.

Well, some people might feel fps is low in large game, but I think stable simloop and responsive is better than high fps.
So, I like current one.

Re: [bug r2795] CPU usage more than 90%

Reply #4
r2833 (102.3) has very low CPU usage; the more recently uploaded 102.2.1 series (r2836 and r2839) are back to taking 100% of CPU.

What is different in the 102.3 series that makes it so much more responsive?  Will that be rolled back into the next revisions?

Re: [bug r2795] CPU usage more than 90%

Reply #5
The differences are the speed at which the time between frame is reduced when the game gets unresponsive.

 

Re: [bug r2795] CPU usage more than 90%

Reply #6
I don't have 100% CPU usage problem anymore.
When I launch simurans, CPU usage is less than 30%, and no CPU clock up.
Tested both Windows SDL and GDI version.