Lag when moving the map while zoomed out.

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Krowser
Engineer
Engineer
Posts: 26
Joined: 28 Jan 2012 16:31

Lag when moving the map while zoomed out.

Post by Krowser »

My PC is more than fast enough to handle Open TTD, yet if I unzoom a few levels and move around the map my framerate drops to something around 1FPS.

Is there a buffer or memory option I can modify for this?

Thanks,
User avatar
Edd.Dragon
Engineer
Engineer
Posts: 101
Joined: 14 Jan 2012 10:13
Location: Ukraine

Re: Lag when moving the map while zoomed out.

Post by Edd.Dragon »

Yep, in openttd.cfg: max_sprite_cache_size = 64

it is in MBytes
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Lag when moving the map while zoomed out.

Post by belugas »

Could it be that this process is more CPU consuming than you imagine? ;)
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
Edd.Dragon
Engineer
Engineer
Posts: 101
Joined: 14 Jan 2012 10:13
Location: Ukraine

Re: Lag when moving the map while zoomed out.

Post by Edd.Dragon »

belugas wrote:Could it be that this process is more CPU consuming than you imagine? ;)
I gaming on secondary old comp (Sempron with 1 weak core) but don't see discribed problem. Yes, animations slows down runnign in "speed-mode". Without adv. animation and without trains in frame 1 month with TAB lasts several secs. With animation - is only bit faster from normal timespeed. But scroll is normal. And no sense, 64, 128 or 256 mb is set for sprite buffer.

So - old CPU not big problem at all...
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Lag when moving the map while zoomed out.

Post by XeryusTC »

Judging whether the CPU is the cause of the problem is way more effective if you look at your task manager. If OpenTTD starts to use near 100% CPU (or 50% for dual core, or 25% for quadcore etc) then it is the problem.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
Krowser
Engineer
Engineer
Posts: 26
Joined: 28 Jan 2012 16:31

Re: Lag when moving the map while zoomed out.

Post by Krowser »

The cache size trick worked!! Thanks!
PPT
Engineer
Engineer
Posts: 109
Joined: 31 May 2007 07:25

Re: Lag when moving the map while zoomed out.

Post by PPT »

How did you get it to work?

Every time I change to cache to a higher amount the game just changes it back to 64.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Lag when moving the map while zoomed out.

Post by planetmaker »

OpenTTD 1.1.5 and earlier has a maximum of 64MB.
User avatar
Edd.Dragon
Engineer
Engineer
Posts: 101
Joined: 14 Jan 2012 10:13
Location: Ukraine

Re: Lag when moving the map while zoomed out.

Post by Edd.Dragon »

You can safely use 1.2 and forget about 1.1.5. Betas and RCs are not unstable or full of bugs! :D
PPT
Engineer
Engineer
Posts: 109
Joined: 31 May 2007 07:25

Re: Lag when moving the map while zoomed out.

Post by PPT »

I'm using the Extra Zoom 32 bit graphics version.

I didn't see a version 1.2 for that.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Lag when moving the map while zoomed out.

Post by FooBar »

1.2.0 has extra zoom built-in. Albeit that RC1 doesn't load old style tar 32bpp graphics.
User avatar
Edd.Dragon
Engineer
Engineer
Posts: 101
Joined: 14 Jan 2012 10:13
Location: Ukraine

Re: Lag when moving the map while zoomed out.

Post by Edd.Dragon »

PPT wrote:I'm using the Extra Zoom 32 bit graphics version.

I didn't see a version 1.2 for that.
So, you only may wait for updates of Extra Zoom 32 bit graphics. Its curious - more detailed graphics need more memory but more memory we can have in version there no detailed graphics =)))
PPT
Engineer
Engineer
Posts: 109
Joined: 31 May 2007 07:25

Re: Lag when moving the map while zoomed out.

Post by PPT »

FooBar wrote:1.2.0 has extra zoom built-in. Albeit that RC1 doesn't load old style tar 32bpp graphics.
Is it using the Blender files?
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Lag when moving the map while zoomed out.

Post by Lord Aro »

PPT wrote:
FooBar wrote:1.2.0 has extra zoom built-in. Albeit that RC1 doesn't load old style tar 32bpp graphics.
Is it using the Blender files?
Yes, OTTD now renders them on-the-fly...
/sarcasm :P
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 29 guests