The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: wing044 on July 16, 2010, 04:35:38 pm

Title: Program performance problems
Post by: wing044 on July 16, 2010, 04:35:38 pm
Hi, I'm having few performance related problems running Simutrans. I have a fairly large and busy map. On loading the map it quite regularly have a vehicle behaving strangely and refuse to move. After running the program for a while frequently I have errors with route possession not released or level crossing stuck. It is also very slow to close, it takes a few minutes for the program to close after I press Quit.

Is there any boundaries to the Simutrans program in relation to number of vehicles in use, number of routes, map size, etc? Appreciate tips to improving performance.
Title: Re: Program performance problems
Post by: vilvoh on July 16, 2010, 05:53:42 pm
Could you please give more details about the map size, amount of cities and vehicles, and finally pc characteristics, OS, Simutrans version and pakset you're using?
Title: Re: Program performance problems
Post by: wing044 on July 17, 2010, 03:41:14 am
I'm running Simutrans 102.2.2, with pak128.Britain 1.07
Map size: 896x448,
Cities: 33
Total inhabitants: 1,755,905
Total p****engers: 4,638,906
Total goods: 9,759,956
Trips last year: 19,795,956
Active vehicles: about 1300

My computer
Intel Core 2 Duo P8400 2.26GHz, 4GB RAM, Windows 7 x64

I just timed it, it takes 2:30 minutes to quit the program.
Title: Re: Program performance problems
Post by: Combuijs on July 17, 2010, 03:46:18 pm
Using same Simutrans version, pak128.Britain 1.08 (I think, should not matter)
Map size: 1024x1024
Cities: 256
Total inhabitants: 273,911
Trips last year: 4,934,199
Active vehicles: 1493

4 years old computer with less specs than yours, Windows XP.

I have no performance problems whatsoever. It quits for instance in a few seconds.

So, it is either something on your computer (virus checker?), or the number of inhabitants is playing a role.
Title: Re: Program performance problems
Post by: prissi on July 24, 2010, 08:40:52 pm
It may help to reduce the frame pre second setting. either on the command line (-fps 10) or in your simuconf.tab.

You can also try the simutrans 102.2.2 GDI version, which is built without any debug support and can thus handle about twice the normal load.
Title: Re: Program performance problems
Post by: wing044 on July 28, 2010, 03:51:59 am
Thank you Combuijs and prissi. I sent my computer away to fix an unrelated problem, hence the long silence.

I downloaded the gdi version and it now runs much better. Here's the stats, same map, same computer, same pak, both 102.2.2;
                         Running                            On Exit
                      CPU     Memory           CPU     Memory   Time Taken
Simutrans sdl   26-35   113,076          41-57   113,160       2:23
Simutrans gdi   15-23   118,492          46-54   118,528       0:56

May I suggest this info (gdi version can handle higher load) be put on the wiki and download page so everyone is aware of it.
Title: Re: Program performance problems
Post by: prissi on July 28, 2010, 11:38:28 am
That really depends only on compiler settings. It is not neccessary true for the next version.
Title: Re: Program performance problems
Post by: Spike on July 30, 2010, 12:45:55 pm
It also depends on the hardware details. For some people the SDL works better for others the GDI version.