News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

Sluggish Simutrans

Started by CoRnJuLiOx, October 07, 2008, 09:23:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CoRnJuLiOx

Hello all, I'm on Ubuntu Linux 8.04 and whenever I play Simutrans it runs VERY slowly. I'm using 100.0 with pak64 and I cannot get an FPS higher than 25. The game feels REALLY sluggish (especially when compared to OpenTTD, which runs just fine on this system) and it slows to a crawl whenever I've got lots happening on screen at once. Is there any way to bump the framerate up? I've already tried editing the simutrans.conf file and turning a few settings down, but that didn't help very much and I don't think the game should be running this slowly.

My PCs specs are as follows:

Pentium 4 Mobile 2.00 GhZ
512 MB RAM
40 GB HD space
Ubuntu 8.04


Combuijs

Try to start with the -nomidi option. For one reason or the other, sound is causing trouble on Linux machines. Note that changing the sound option in the program itself does not help.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



CoRnJuLiOx

Already tried that, that helped a little but the game itself still feels very sluggish and slow.

Combuijs

Hmm, what's your mapsize? And how many convois (vehicles) are running around approximately? There are performance limits of course, depending on those two.

What's happening in a small map (256x256) with a few vehicles?

Bob Marley: No woman, no cry

Programmer: No user, no bugs



CoRnJuLiOx

Map size is 256 x 256, and its early in the game so I have no fewer than 4-5 convoys running around. I don't know how many my competitors have though.

VS

I know this is rather stupid question... but you aren't running BOINC or converting video or some similar resource intensive task, right?

I had a somewhat similar problem (on Windows) with some of the nightlies. The game sometimes stopped responding for a second or two - not more - and then resumed. It could have been autosaving. But a while back it stopped.

Maybe it's some problem that resurfaces only here and there and was already fixed? You could always try with latest nightly build.
http://www.wernieman.de/simutrans/index.en.html

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

wernieman

I hope you understand my English

CoRnJuLiOx

I'm not running anything process-intensive in the background, at least I don't think I am. I play the game coming from a cold boot and its still sluggish and slow. I'm reading up getting the drivers for my Thinkpad T30's Radeon working right, because that might be my issue here.

Combuijs

QuoteMap size is 256 x 256, and its early in the game so I have no fewer than 4-5 convoys running around.

Well, Simutrans should be nowhere near sluggish then.

QuoteI don't know how many my competitors have though.

What happens when you disable all AI-competitors? There have been reports that they sometimes have as much as 250 vehicles running around on one line. But you would have noted that amount, I'm sure.  :) 

My best guess is one of the drivers, indeed.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



CoRnJuLiOx

Nope, its not the drivers, i've got direct rendering enabled already (glxinfo | grep direct gives me a 'yes') and the thing is still sluggish. Disabling AI competitors gets me nothing, too. I tried setting the water animation redraw interval to 0 and 40000 respectively and got nothing too. My attention turns to my version of SDL. Perhaps that is the culprit?

wernieman

Wich SDL-Version do you have installed?

Normaly simutrans do not use "direkt rendering", because it is a 2d-programm and not a 3d. So you need a quick 2d card....

I hope you understand my English

DirrrtyDirk

100.0 had a few performance problems IIRC - it used way too much CPU.

Try a nightly version and see if it gets any better.

About an fps-rate better than 25 - simutrans doesn't animate as smooth as that even 25fps were needed. And in the config files there's an entry limiting the fps to a given value - have you changed that?
  
***** PAK128 Dev Team - semi-retired*****

whoami

As DirrrtyDirk said, the official 100.0 is known to have a serious performance problem (leading to high CPU usage), and may not respond well to mouse clicks for building tools, among others. A nightly build would solve that for the individual player who cares enough to look for a solution, but I think that it would be better to provide a new official version.

We could vote for a recent nightly build after testing it, and put it on the download pages, together with suitable revisions of the different pak sets.

CoRnJuLiOx

As opposed to a nightly, is there an archive of previous stable versions? I'd rather try something stable than not.

DirrrtyDirk

Well, during the last years there have been only two versions that have officially been called "stable". And still both had bugs. One was 88.10.5 (that one's really old by now - I wouldn't recommend using that. There are simply too many wonderful features that have been changed or added since then) and the other was 99.17.1. - which was the last release before 100.0.

But just as I said: 99.17.1 also had a problem or two. But IIRC it was only connected to map rotation - so as long as you don't use that feature, it should be quite stable. I just don't know if it is still available.

Generally, older versions were listed on the old forum (now in the archive). No idea if the download links there still work, though.
  
***** PAK128 Dev Team - semi-retired*****

wernieman

Thats the disadvantage of the nightly-System. There are not so many "stable" Versions.

When some Tester said: This Version is good, then we should make a "Stable".
I hope you understand my English

CoRnJuLiOx

Ok, I tried 99.17 and its a bit faster, but the map generation takes a long time. How does one check their version of SDL on Ubuntu?

DirrrtyDirk

What settings (map size, number of cities, number of factories and markets) do you use?

I'm asking, because when people complain about map generation taking too long, most of the time it is because they use way too high values for the starting parameters.
  
***** PAK128 Dev Team - semi-retired*****

CoRnJuLiOx

I didn't touch the starting values, this is what it had when I first started it:

Map Size: 256x256
Cities: 16
Median Citizens/City: 800
Intercity Road Length: 800
Traffic Density: 7
Factories Outside Cities: 30
Markets In Cities: 330
Tourist Attractions: 6

Water Level: 5
Mountain Height: 100
Map Roughness: 4

Summer Snowline: 8
Winter Snowline: 4
Desert Climate: 0
Tropical Climate: 0
Mediterranean Climate: 3
Temperate Climate: 6
Tundra: 8
Alpine Climate: 6

wernieman

#19
Markets In Cities: 330

can you make it a little bit "smaler"?
I hope you understand my English

DirrrtyDirk

Yep, the usual problem.  ;)

Try something like:

Factories 10 (these are only power plants anyway)

and

Markets 15-30 (these are complete production chains!)

With that, you'll be amazed at how fast map generation will suddenly be.  :D
  
***** PAK128 Dev Team - semi-retired*****

CoRnJuLiOx

Yup, map generation is muuuch faster now, so is the game. Its still a little choppier than what i'm used to seeing, like when i'm scrolling around the map (part of me is expecting Simutrans to run as fast as OpenTTD, since the latter runs just fine on this PC). I'm beginning to think this is normal, but the videos I see on Youtube tell a different story.

mobo

Hi!

The smoothness of the veicle movement also depends a bit on the pak set. I heard it shall be better in 128 than in 64. I haven't compared it i must admit so i cann only pass this on as a rumor.

Besides that there are several possibilities to save ressources and make the programm run faster in the "simuconf.tab". For example you can decrease the pathfinding search depth (dramatically if you play on small maps like 256x256).

prissi

Actually, the nightlies make the movement much smoother. ANd more than 15 fps does not change the visual experience but for very fast trains.

wernieman

A Problem of the generation of the nightlys or is the code changed?
I hope you understand my English

DirrrtyDirk

No wernieman - they run smoother (=better) - so it's not a problem at all. Quite the opposite! :)
  
***** PAK128 Dev Team - semi-retired*****