Game lags when using external units for water map

Game lags when using external units for water map

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Game lags when using external units for water map

Post by TradeMark »

I have noticed that when i use extra unit in a map where is water, it will lag when you select the commander (actually only the unit which builds the extra unit...), and when you select the extra unit (for building it), and when you build it.

Map size is relative to the lag length, i just made new map called speed donut:
http://spring.unknown-files.net/file/26 ... nut_20x20/
And that lags damn long at the start :cry:

Can someone try to detect where is the problem in spring engine. So it may be fixed at some point?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Any devs going to track the bug?

It must be cause of bloat code.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

I just found out that .sdz files doesnt lag at all. But .sd7 files will lag.

Does Spring handle those fileformats differently?

Looks like it does: I compressed my map into 2 megs with 7zip (fastest compression), result: lag. Then i compressed it with zip to 3 megs (slowest compression): no lag.

...Or then 7-zip is just made of phail?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

7z decompression is about 6 times slower then zip decompression, IIRC. I made a post about this once (in some thread) but I cannot find it anymore. So basically all (in game) loading from .sd7 files is about 6 times slower then loading the same content from zip files.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

But why it even decompresses anything when game is already started?
It should save them to some temp folder.

Or why it doesnt put them all in RAM at once??
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

not everybody can fit all those files in ram and still have enough left over to run spring well.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

How the heck you can play spring, if you you cant read the mod??

I dont understand. All files are needed for making the mod workable.

And mods aint that big, even maps takes like 200 megs. So mods are the smallest problem.
User avatar
Decimator
Posts: 1118
Joined: 24 Jul 2005, 04:15

Post by Decimator »

Why not create a cache? Seems like the simplest solution to me...
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

This might confirm something fang and I were talking about, the 7ziped mods have a frequent issue with desync. Is there a possibility that the decompression offset could have something to do with the mod desyncs?
User avatar
drolito
Posts: 358
Joined: 06 Feb 2007, 09:44

Post by drolito »

User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Yes drolito, as i said .sdz doesnt lag.
User avatar
drolito
Posts: 358
Joined: 06 Feb 2007, 09:44

Post by drolito »

ok :D

This map is fantasctic i think ... it will become a must ^^
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Your avatar suits you just right.
Is 7zip decompression really that much slower? Even if you choose bzip2 compression?
User avatar
drolito
Posts: 358
Joined: 06 Feb 2007, 09:44

Post by drolito »

rattle wrote:Your avatar suits you just right.
thanks ... i'm happy to see i have another fan :D
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

rattle wrote:Your avatar suits you just right.
Is 7zip decompression really that much slower? Even if you choose bzip2 compression?
Then it isn't 7zip compression anymore :P

No clue how fast bz2 (de)compression is though, though I'm fairly sure it's slower then zip (de)compression.
Post Reply

Return to “Help & Bugs”