The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: ojii on June 18, 2011, 12:52:29 PM

Title: Simutrans Performance
Post by: ojii on June 18, 2011, 12:52:29 PM
Hi everyone.

I'm a huge fan of simutrans and spend waaaay too much time with it.

However there is one thing that bugs me, and that's the absolutely atrocious performance I'm getting. I never get more than 8 FPS!!

So here's what I'm running:

Simutrans 110.0.1
Usually play with pak128.japan with quite a few addons
Never play with trees or clouds
I'm on Ubuntu 11.04 x64
Map size usually not bigger than 512x512
I run it with -nosound -nomidi

Here's what I'm running it on:

Quad Core i7 (2820QM) @ 2.3 GHz (with HT, so to the OS it looks like a 8-core CPU)
16 GB DDR3 RAM @ 1333MHz
NVidia GeForce GTX 485M (2GB GDDR5 RAM) with the 270.41.06 binary drivers
6Gb/s SSD


My machine can run 3D games such as Heroes of Newerth at full HD resolution with all display settings maxed out no problem.

So is there anything (config/startup param) I can do to get simutrans to run on an acceptable FPS rate?
Title: Re: Simutrans Performance
Post by: An_dz on June 18, 2011, 01:47:38 PM
For the specs your PC should be running up to 2048x2048 maps, or even bigger.

Have you modified simuconf.tab? Some options could cause fps drop.

If you haven't changed, try the newest nightly, when v102.2 was the latest stable my FPS was low too. I updated to a nightly and the FPS got perfect, even when moving the map.
Title: Re: Simutrans Performance
Post by: ojii on June 18, 2011, 02:00:14 PM
Only thing I changed in simuconf.tab is turn off the silly clouds hoping I could get above 10fps with that...

I'll try a nightly at some point if that should help...
Title: Re: Simutrans Performance
Post by: ojii on June 18, 2011, 03:59:26 PM
just got myself Linux 64/gcc 4 Version: 110.0.2-4653, 7 FPS...

EDIT: If run behind padsp (since pulseaudio sometimes causes issues) and if I don't move the camera I get 9 FPS
Title: Re: Simutrans Performance
Post by: jamespetts on June 18, 2011, 05:52:16 PM
Having lots of trees can be a significant factor in performance degradation.
Title: Re: Simutrans Performance
Post by: ojii on June 18, 2011, 06:32:56 PM
Quote from: jamespetts on June 18, 2011, 05:52:16 PM
Having lots of trees can be a significant factor in performance degradation.

as stated above, I play completely without trees.
Title: Re: Simutrans Performance
Post by: jamespetts on June 18, 2011, 07:56:18 PM
Apologies - I missed that.
Title: Re: Simutrans Performance
Post by: prissi on June 18, 2011, 09:39:34 PM
I am not sure about your simuconf.tab. Do you start explicitely with -fps 25 or so? Otherwise, if once started with -fps 8 and never set anywhere else, simturans will use this a default rate.

(pak128.japan/config/simuconf.tab has the default entry

# How many frames per second to use? Display will look useful until 10 or so
frames_per_second = 10


Usually simutrans should then settle for about 9.5 fps. You can change this entry to 20 or so. But it will not make the display much smoother ...

In networkgames the fps is given by the server. Here you cannot tune anything.
Title: Re: Simutrans Performance
Post by: An_dz on June 18, 2011, 09:46:08 PM
I've installed on my Ubuntu 11.04 x64 and I got 25-27FPS. With FastForward it goes to 9-11FPS.

Maybe try reinstalling libSDL.
Title: Re: Simutrans Performance
Post by: prissi on June 18, 2011, 09:47:29 PM
Or, as written above, change the simuconf.tab!
Title: Re: Simutrans Performance
Post by: ojii on June 18, 2011, 10:37:55 PM
Quote from: prissi on June 18, 2011, 09:39:34 PM
I am not sure about your simuconf.tab. Do you start explicitely with -fps 25 or so? Otherwise, if once started with -fps 8 and never set anywhere else, simturans will use this a default rate.

(pak128.japan/config/simuconf.tab has the default entry

# How many frames per second to use? Display will look useful until 10 or so
frames_per_second = 10


Usually simutrans should then settle for about 9.5 fps. You can change this entry to 20 or so. But it will not make the display much smoother ...

In networkgames the fps is given by the server. Here you cannot tune anything.

ah brilliant!

What is the point of having a maxfps of 10 by the way?
Title: Re: Simutrans Performance
Post by: prissi on June 19, 2011, 06:07:52 PM
Maybe the developer had a slow computer? But honestly, add such setting to your personal simuconf.tab and it will prevail with all paksets and survive updates.