Page 1 of 1
"Day to day" freeze
Posted: 11 Jun 2005 20:40
by Bigboo
I have a company on OpenTTD that isn't that big but i'm having a problem with it: the screen freezes for 1 second in a period of 3-4 seconds (one day in the game). I was using 0.4.1 with nightly Sub2173 and yesterday downloaded the latest Sub2412. The stuttering has been reduced, but is still present. NPF or something like this are disabled, and I have 120 trains, 200 buses and 230 planes on a 6X11 map. What can be happening? Excess of vehicles? I heard something about bad track layout, but so how to solve this?
Thanks in advance.
Posted: 11 Jun 2005 20:53
by LordOfThePigs
Hello,
It would be nice if you could check out with the nightly builds (that is without subsidiaries patch), so we can identify wether the problem comes from the official version or from the subsidiaries patch.
And It would also be nice (actually, it would be needed) if you could post the savegame which shows this behavior.
Please also post any newgrf you are using so we can test it out correctly (the savegame won't load if we don't have the same newgrf as you installed)
Posted: 12 Jun 2005 16:57
by Bigboo
The latest nightly I found (r2437, without subsidiaries patch) didn't helped too much. The stuttering continued... Attached is my savegame you asked. I only use newshipsw graphic, and my company doesn't have any ship either.
Posted: 12 Jun 2005 17:31
by LKRaider
Funny map
I don't have the freezes you mention. I am using my I4 build.
What pc you have? (I am on P4-2Ghz here)
Posted: 12 Jun 2005 19:47
by Bigboo
Thanks

I'm on a P3 800MHz with 256 MB RAM. Slow machine hehe... curious that in another computer (Athlon 1,4GHz 512 RAM) the game stuttered as well.
Posted: 12 Jun 2005 19:52
by LKRaider
Try using the I4 build and see if that helps...
I am out of ideas

Posted: 12 Jun 2005 20:06
by Griff
i get the exact problem of freezing in my game, i thought it was just down to my large amounts of road vehicles in a small area. and i dont have any nightlies thingies
Posted: 12 Jun 2005 20:18
by LordOfThePigs
jpmaster, would you care to post your savegame too. The more material the devs have to find out the problem, the better it will be.
And while you're at it, please post your system specs.
Posted: 12 Jun 2005 21:07
by bobingabout
its probably something small and stupid in your network. we've had a simular situation before, mwe spend about 30 mins working on the railway network without NPF then when we turned it back on, it was running normal again.
its usually caused by something on your network when a train(or other vehicle) has too many choices to make, or can't get to its destination.
Posted: 12 Jun 2005 22:22
by Bjarni
please add openttd.cfg with your savegames and tell about your computer (RAM, OS, CPU). This will help a lot.
Also try to see if OTTD tries to use 100% of the CPU power while it freezes
Posted: 13 Jun 2005 00:55
by Bigboo
System specs: Pentium3 800MHz, 256 MB RAM Windows XP Pro with Service Pack 2.
About the CPU usage, it stays at 30-40% levels and jump until 60% during the freezes.
Posted: 13 Jun 2005 09:17
by matthijs
I expect this problem to be caused by too many road vehicles.
Everytime a road vehicle comes at a junction, it needs to do pathfinding to choose its next move. If a bunch of vehicles do this at the same time, you might experience the game being unresponsive for a short time.
The solution to this would be to do pre-emptive pathfinding, ie start the pathfinding a few ticks before the vehicle enters the new tile and spread it out over a few ticks. I have been doing some work on this already, but there are catches...
Matthijs
Posted: 13 Jun 2005 10:10
by bobingabout
Path finding is done on all vehicles every day.
Posted: 13 Jun 2005 11:30
by Dextro
Do you have any competitors? In one game I had problems with one competitor making buses that had an invalid route so the game would block every day because that route was in an infinite loop.
Try to enable the new ai (in the game) to see if the slowdowns are gone

Posted: 13 Jun 2005 13:06
by mivlad
This save is from a multiplayer game. It started going sluggy in a similar way and continues to do so when loaded in the single player mode.
Game version here is 0.4.0.1, pc specs are Athlon XP 2500 with 512 megs ram running linux.
Posted: 15 Jun 2005 02:29
by Bigboo
So pathfinding is the problem? But isn't being improved?

I don't have competitor in my company. Actually I reduced to half the amount of road vehicles in the map, and I can say the stuttering almost disappeared. There is still a very little freeze, but the game is playable anyways! Thanks very much for the tips from everybody!!!

Posted: 15 Jun 2005 03:05
by LKRaider
Well, you have the new pathfinding disabled in your config... you might try enabling it to see if something changes. (although for me, it didn't make any difference when using the new or old pathfinding on your savegame...)
Posted: 15 Jun 2005 08:48
by Killer 11
well my pc is intel celeron 2ghz(probably 64bit becouse the CPU is very small) 128mb ram(333mhz) video card is geforce fx5500 128mb agp x8
i do see some stopings but when i turn off details then it's back to normal.
Maybe your videocard just can't draw thath much sprites in that small time without stopping???
Posted: 15 Jun 2005 09:46
by bobingabout
All intel chips are 32bit you fool... only 64 bit chips are the AMD Athlon/Opteron/Semperon 64s. small chip would mean less than the 900 pins required for 64bit.(intell tend to use multiprocessors, but they do have some 64 bit processors available, just don't seem to be publicly available yet, because they are buisness orientated.)
(don't know why but current CPUs need about 450 pins for 32bit and 900 for 64bit. this is stringe because imo, you should be able to easily do a 32bit processor with only 32data lines, 32 address lines, power, and some control lines, making less than 100. it is possable they could repeat lines for seperate speeds, but i thought this was all done VIA the north bridge of the motherboard chipset.)
Posted: 25 Jun 2005 19:03
by White Rabbit
Ugh.. the stupidity of the cars is disgusting. I've had exactly the same error as Bigboo (with NPF on) and after reading this, I stopped all of my vehicles (no selling), and the game ran sooooo muchs smoother. Now, a question. Do my AI opponents also benefit from NPF? Because if they do, then I would have to somehow kill off all their cars (easily done with the patch configuration, but that wouldn't be fair would it?) or else my game will never be playable. Oh, and does the size of the map have anything to do with it, because the path-finding is 'global' isn't it? I'm running on a 512x512 map. The fact that Bigboo has solved his problem gives me new hope, because I was considering to quit OpenTTD just because of this NPF slow-down!
