News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Simutrans Performance

Started by ojii, June 18, 2011, 12:52:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ojii

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?

An_dz

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.

ojii

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...

ojii

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

jamespetts

Having lots of trees can be a significant factor in performance degradation.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

ojii

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.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

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.

An_dz

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.

prissi


ojii

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?

prissi

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.