Very lag in OpenTTD
Moderator: OpenTTD Developers
Very lag in OpenTTD
I'm having a lot of lag when trying to play OpenTTD, either in version 1.8.0 or in previous versions. The game appears to be in slow motion, be it the sprites or the speed of music, with some spikes, either in the menu or in the game.
My specs:
Windows 7 SP1 64bit
Gigabyte GA-965P-DS3
Intel Core 2 Duo E4400 @ 2.0GHz
GeForce 9600GT 2GB
3GB DDR2 RAM
My specs:
Windows 7 SP1 64bit
Gigabyte GA-965P-DS3
Intel Core 2 Duo E4400 @ 2.0GHz
GeForce 9600GT 2GB
3GB DDR2 RAM
- Redirect Left
- Tycoon
- Posts: 7420
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: Very lag in OpenTTD
OpenTTD, whilst being based on quite an old game, is a large CPU hog. This is especially true if you have a large amount of vehicles, as pathfinding needs to be done very frequently, and its a very CPU intensive process looking for all the possible routes, and which one is the best direction to go in at that precise point in time.
Does this happen all the time, or only on saved games after placing quite a lot of units?
I have a fairly modern Intel i5, 4x 3.5GHz and it still gets quite slow with large amounts of units. In part, because OpenTTD won't use more than one core (except in multiplayer, I believe OpenTTD dumps the net code into another core, if available?)
Does this happen all the time, or only on saved games after placing quite a lot of units?
I have a fairly modern Intel i5, 4x 3.5GHz and it still gets quite slow with large amounts of units. In part, because OpenTTD won't use more than one core (except in multiplayer, I believe OpenTTD dumps the net code into another core, if available?)
Re: Very lag in OpenTTD
This happens all the time. Actually I have specifications from a decade ago, but I find it odd that I can run current games like Kerbal Space Program at more than 60FPS and OpenTTD not.Redirect Left wrote:OpenTTD, whilst being based on quite an old game, is a large CPU hog. This is especially true if you have a large amount of vehicles, as pathfinding needs to be done very frequently, and its a very CPU intensive process looking for all the possible routes, and which one is the best direction to go in at that precise point in time.
Does this happen all the time, or only on saved games after placing quite a lot of units?
I have a fairly modern Intel i5, 4x 3.5GHz and it still gets quite slow with large amounts of units. In part, because OpenTTD won't use more than one core (except in multiplayer, I believe OpenTTD dumps the net code into another core, if available?)
- Redirect Left
- Tycoon
- Posts: 7420
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: Very lag in OpenTTD
If you go to settings -> Full Animation, Full Details = off, does this improve the situation?
Re: Very lag in OpenTTD
Yes, it improves. I tried reducing the screen resolution too, but it had no significant effect. At least now the game is playable, but far from the performance I had on a notebook with a 1.50GHz i3-2375M. Is it possible to do something more?Redirect Left wrote:If you go to settings -> Full Animation, Full Details = off, does this improve the situation?
- Redirect Left
- Tycoon
- Posts: 7420
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: Very lag in OpenTTD
You can try messing with the blitter options. As some hardware may struggle to render things in the original manner intended by Chris Sawyer when he made the game all those years ago. (Basically modern hardware deprecates stuff, or treats the stuff with very low priority, reducing overall performance with older methods) - the reverse is true, sometimes the cleverness of trying to get by these with new methods, may also have the opposite effect.
Details are on the Wiki here; https://wiki.openttd.org/FAQ_troublesho ... 5_or_later
The config file, i believe will be in C:\Users\SYSTEM_USERNAME\Documents\OpenTTD\ - at least mine is.
Other forum members will likely reply with potentially different options, the ones i have mentioned are from my experience. Indeed, changing the blitter optimised my framerate somewhat, obviously your mileage may vary.
Details are on the Wiki here; https://wiki.openttd.org/FAQ_troublesho ... 5_or_later
The config file, i believe will be in C:\Users\SYSTEM_USERNAME\Documents\OpenTTD\ - at least mine is.
Other forum members will likely reply with potentially different options, the ones i have mentioned are from my experience. Indeed, changing the blitter optimised my framerate somewhat, obviously your mileage may vary.
Re: Very lag in OpenTTD
Go back to your notebook? You moved from a faster processor to a slower one with slower bus speeds and a smaller cache. Switches and settings can only compensate for a hardware downgrade so much.Abydos wrote:Yes, it improves. I tried reducing the screen resolution too, but it had no significant effect. At least now the game is playable, but far from the performance I had on a notebook with a 1.50GHz i3-2375M. Is it possible to do something more?
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Very lag in OpenTTD
It seems to have improved a bit after I did this.Redirect Left wrote:You can try messing with the blitter options. As some hardware may struggle to render things in the original manner intended by Chris Sawyer when he made the game all those years ago. (Basically modern hardware deprecates stuff, or treats the stuff with very low priority, reducing overall performance with older methods) - the reverse is true, sometimes the cleverness of trying to get by these with new methods, may also have the opposite effect.
Details are on the Wiki here; https://wiki.openttd.org/FAQ_troublesho ... 5_or_later
The config file, i believe will be in C:\Users\SYSTEM_USERNAME\Documents\OpenTTD\ - at least mine is.
Other forum members will likely reply with potentially different options, the ones i have mentioned are from my experience. Indeed, changing the blitter optimised my framerate somewhat, obviously your mileage may vary.
It does not pay. Although the hardware in my current computer is older, it is superior to my notebook, and caters better.kamnet wrote:Go back to your notebook? You moved from a faster processor to a slower one with slower bus speeds and a smaller cache. Switches and settings can only compensate for a hardware downgrade so much.
Re: Very lag in OpenTTD
You could probably get some better performance by using an older graphics card with dedicated 2D support in hardware rather than software. Using an SSD drive instead of a magnetic hard drive will help a little as well. If that isn't doable, using a ReadyBoost-enabled storage card (Compact Flash drive, USB drive, SD card) could also help a little.
Another idea worth trying: create another bootable hard drive partition, install a lightweight Linux distro and install OpenTTD on it. Windows is quite cumbersome, after all.
Another idea worth trying: create another bootable hard drive partition, install a lightweight Linux distro and install OpenTTD on it. Windows is quite cumbersome, after all.

Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Very lag in OpenTTD
Are you using any NewGRFs ? If yes, show me your list.
Re: Very lag in OpenTTD
I'd wonder about map sizes, but if it happens even in the menu, I'm kinda more inclined to belief that some other trouble is going on. That shouldn't happen, even with less than stellar hardware.
What other programs do you have running while playing OTTD? Anything that could possibly be a culprit? Even if you don't think so, it might be worth trying to turn them off just to see. CPU aside, 3GB DDR3 RAM aren't much these days. Even a browser with a bunch of tabs open can make a dent in that. Also, check your Task Manager for anything that uses an usual amount of CPU/RAM and what your overall usage is while OTTD is open. You could also try increasing the priority for OTTD while it runs. It really shouldn't be necessary, but you could at least see if it matters.
What other programs do you have running while playing OTTD? Anything that could possibly be a culprit? Even if you don't think so, it might be worth trying to turn them off just to see. CPU aside, 3GB DDR3 RAM aren't much these days. Even a browser with a bunch of tabs open can make a dent in that. Also, check your Task Manager for anything that uses an usual amount of CPU/RAM and what your overall usage is while OTTD is open. You could also try increasing the priority for OTTD while it runs. It really shouldn't be necessary, but you could at least see if it matters.
Re: Very lag in OpenTTD
I'm not using any NewGRF, only the game downloaded directly from the site. I already tried to reinstall the game too.acs121 wrote:Are you using any NewGRFs ? If yes, show me your list.
I have analyzed the performance of my computer as follows:Pyoro wrote:I'd wonder about map sizes, but if it happens even in the menu, I'm kinda more inclined to belief that some other trouble is going on. That shouldn't happen, even with less than stellar hardware.
What other programs do you have running while playing OTTD? Anything that could possibly be a culprit? Even if you don't think so, it might be worth trying to turn them off just to see. CPU aside, 3GB DDR3 RAM aren't much these days. Even a browser with a bunch of tabs open can make a dent in that. Also, check your Task Manager for anything that uses an usual amount of CPU/RAM and what your overall usage is while OTTD is open. You could also try increasing the priority for OTTD while it runs. It really shouldn't be necessary, but you could at least see if it matters.
Idle: 10% CPU and 750MB RAM usage.
OpenTTD running at fullscreen 1920x1080 resolution, 256x256 map size and trees, with high priority: 40% CPU and 830MB RAM usage.
OpenTTD running at window mode 800x600 resolution, 256x256 map size and trees, with high priority: 10% CPU and 860MB RAM usage.
I closed unnecessary processes too. At resolution 800x600 with window mode, the game is almost completely playable.
Re: Very lag in OpenTTD
I was able to find a saved RAM memory and added it to my pc (now I have a total of 5GB of RAM) and OpenTTD is completely playable in my native resolution (1920x1080).
Who is online
Users browsing this forum: No registered users and 24 guests