Page 1 of 2

[AI] Making game unplayable #1

Posted: 25 Nov 2006 15:52
by Prophet
Hi,

i just wanted to ask why OpenTTD is bucking on my computer. I'm playing it on a 3,6 GHz CPU with 512MB Ram so i don't understand. It didn't before. I am playing a 2048x2048 map but i have played those often before to so that can't be the reason eigther. Can it be that OpenTTD buckles when you build to many signals?

Greetings, Prophet

Posted: 25 Nov 2006 16:58
by KUDr
It shouldn'd do that. What revision (is it not _DEBUG build?) or nightly you are running, on what OS, cfg file, and so on?

Posted: 25 Nov 2006 17:14
by Prophet
What revision (is it not _DEBUG build?) or nightly you are running, on what OS, cfg file, and so on?
Version: 0.4.8 - Debian/Ubuntu from Download Page (No nightly / No debug)
OS: Ubuntu 6.06 Dapper Drake
CFG File: Attached
Map: Greenland - Random - 2048x2048
Screen: Attached

Posted: 25 Nov 2006 20:41
by doktorhonig
Are you using an nVidia card with the nv-driver? Try installing the binary driver.

Posted: 25 Nov 2006 20:43
by Prophet
I have already installed the nvidia driver.

Posted: 25 Nov 2006 22:22
by KUDr
Must be really something on your side. Here it works fine (ubuntu in vmware).

Posted: 25 Nov 2006 22:47
by Prophet
But it did not buckle before. Why does it just start now? Are there to many signals?

Posted: 25 Nov 2006 22:52
by KUDr
Don't think so. I also use many signals and it doesn't influence performance.

Many trains? Or some other process taking too much CPU? Try to switch off NPF.

Posted: 25 Nov 2006 23:10
by Prophet
Many trains? Or some other process taking too much CPU? Try to switch off NPF.
I had 32 trains. Game with more didn't buckle...

I had nothing else running. I thought that to in the first moment but there was nothing irregular.

What is NPF?

Posted: 25 Nov 2006 23:31
by KUDr
NPF is New Path Finder (under menu/patches settings/vehicles).

Posted: 26 Nov 2006 00:11
by Prophet
No change when i turn it off

Posted: 26 Nov 2006 00:17
by KUDr
Then i don't know. Maybe some linux guru can help you.

Posted: 26 Nov 2006 10:41
by Prophet
Hi,

well i tried it again. Directly after i booted. I loaded the savegame and played. At first it only buckled when scrolling but after a few minutes i couldn't even build things anymore. As switched in window mode i saw that the game needed about 50% of CPU load. What is this?

This never happend before and i allready played map this size with 200 trains on two player mode over network...

I would attach the savegame. Mayby it helps you guys. But the max size is 4mb and the savegame has 7.1mb...

Greetings, Prophet

Posted: 26 Nov 2006 11:22
by RiTi
Prophet wrote:But the max size is 4mb and the savegame has 7.1mb...
A savegame of 7.1mb is huge. Is the savegame not corrupt? Have you tried other savegames? And maybe the problem is not the CPU load but the memory load. Is the memory not overloaded therefor no roam for normal gameplay?

Posted: 26 Nov 2006 11:46
by Prophet
And maybe the problem is not the CPU load but the memory load. Is the memory not overloaded therefor no roam for normal gameplay?
Durring Game:
CPU Load: ~50%
RAM Load: ~40%

A savegame of 7.1mb is huge. Is the savegame not corrupt? Have you tried other savegames?
All my save games have a size of 4 to 7 MB. How can i check if it is corrupt? I can load and save all my savegames without problems. Only this game starts bucking. Its like that since i built the big rail station you se on the screen.

Posted: 26 Nov 2006 12:16
by RiTi
Would like to try with this savegame to test if the problem is still there? Just load the game en start.

Can you send me a savegame by e-mail? riti@hccnet.nl

Posted: 26 Nov 2006 12:25
by Prophet
There were no problems with your savegame. But it was pretty small.

I'll send my one to you.

Posted: 26 Nov 2006 19:33
by RiTi
Thanks for the save game. I played with it and indeed by playing some time the game starts bucking.

What did I notice:

Very big save game and I think that's because of the many trees on the map.
Autosave was on, I turned it of;
At the 3rd of march 1974 the game starts bucking, CPU load at 99%. Before that normal play. Question why at the 3rd of march starts bucking, because there was no indication?

I tried the following:

I deleted all the trains and bought new ones, no result.
I started the game in a later/earlier year, no result.
I renamed the save file in a scenario file, load it in the scenario editor, saved the scenario and start playing this as a new scenario, no result. But I noticed that on the 3rd of march 1974 a new vehicle was popping up. This popping up didn't appear in the old save game. After clicking no/yes to this popup the game begins bucking. Why after, or because of, this popup, I really don't know. Maybe somebody else can give an answer.

For this moment I can only advise to make a complete new scenario that looks like this one and give that a try. If the new scenario acts smoothly then I think that your old save games are somehow corrupt.

Posted: 26 Nov 2006 19:51
by KUDr
RiTi:
- Did you play it in the same ( 0.4.8 ) or some other version?
- Linux or some Win32?

Posted: 26 Nov 2006 19:53
by RiTi
KUDr wrote:RiTi:
- Did you play it in the same ( 0.4.8 ) or some other version?
- Linux or some Win32?
I played it with the Nightly r7194 and Windows XP SP2.