The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999+ on October 18, 2009, 11:49:36 pm

Title: [bug r2795] CPU usage more than 90%
Post by: z9999+ on October 18, 2009, 11:49:36 pm
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%.
Title: Re: [bug r2795] CPU usage more than 90%
Post by: z9999+ on October 20, 2009, 05:18:02 am
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.
Title: Re: [bug r2795] CPU usage more than 90%
Post by: prissi on October 21, 2009, 03:22:49 pm
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.
Title: Re: [bug r2795] CPU usage more than 90%
Post by: z9999+ on October 22, 2009, 10:02:24 am
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.
Title: Re: [bug r2795] CPU usage more than 90%
Post by: wlindley on November 03, 2009, 04:39:34 pm
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?
Title: Re: [bug r2795] CPU usage more than 90%
Post by: prissi on November 03, 2009, 08:09:19 pm
The differences are the speed at which the time between frame is reduced when the game gets unresponsive.
Title: Re: [bug r2795] CPU usage more than 90%
Post by: z9999+ on November 04, 2009, 12:31:27 pm
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.