The International Simutrans Forum
September 10, 2010, 07:55:05 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Program performance problems  (Read 489 times)
0 Members and 1 Guest are viewing this topic.
wing044
*
Offline Offline

Posts: 22


« on: July 16, 2010, 05: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.
Logged
vilvoh
7th dan plumber
*
Online Online

Posts: 3789


Nobody likes a blonde in a hamster ball...


WWW
« Reply #1 on: July 16, 2010, 06: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?
Logged



Escala Real...a blog about Simutrans in Spanish...
wing044
*
Offline Offline

Posts: 22


« Reply #2 on: July 17, 2010, 04: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 passengers: 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.
Logged
Combuijs
Devotee, Web Team
*
Offline Offline

Posts: 588


Maintainer of maps.simutrans.com


WWW
« Reply #3 on: July 17, 2010, 04: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.
Logged

Bob Marley: No woman, no cry

Programmer: No user, no bugs


prissi
Head Developer
*
Offline Offline

Posts: 3004



WWW
« Reply #4 on: July 24, 2010, 09: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.
Logged
wing044
*
Offline Offline

Posts: 22


« Reply #5 on: July 28, 2010, 04: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.
Logged
prissi
Head Developer
*
Offline Offline

Posts: 3004



WWW
« Reply #6 on: July 28, 2010, 12:38:28 PM »

That really depends only on compiler settings. It is not neccessary true for the next version.
Logged
Hajo
Simutrans Originator
*
Offline Offline

Posts: 797


Ambassador of Slowness.


WWW
« Reply #7 on: July 30, 2010, 01:45:55 PM »

It also depends on the hardware details. For some people the SDL works better for others the GDI version.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 1.514 seconds with 21 queries.