Page 1 of 1
Game lags when using external units for water map
Posted: 31 Mar 2007, 23:17
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
Can someone try to detect where is the problem in spring engine. So it may be fixed at some point?
Posted: 02 Apr 2007, 20:43
by TradeMark
Any devs going to track the bug?
It must be cause of bloat code.
Posted: 02 Apr 2007, 22:23
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?
Posted: 02 Apr 2007, 22:35
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.
Posted: 02 Apr 2007, 22:45
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??
Posted: 03 Apr 2007, 01:45
by AF
not everybody can fit all those files in ram and still have enough left over to run spring well.
Posted: 03 Apr 2007, 02:06
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.
Posted: 03 Apr 2007, 05:52
by Decimator
Why not create a cache? Seems like the simplest solution to me...
Posted: 03 Apr 2007, 06:12
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?
Posted: 03 Apr 2007, 10:41
by drolito
Posted: 03 Apr 2007, 13:25
by TradeMark
Yes drolito, as i said .sdz doesnt lag.
Posted: 03 Apr 2007, 14:04
by drolito
ok :D
This map is fantasctic i think ... it will become a must ^^
Posted: 03 Apr 2007, 17:12
by rattle
Your avatar suits you just right.
Is 7zip decompression really that much slower? Even if you choose bzip2 compression?
Posted: 03 Apr 2007, 17:15
by drolito
rattle wrote:Your avatar suits you just right.
thanks ... i'm happy to see i have another fan :D
Posted: 03 Apr 2007, 20:51
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
No clue how fast bz2 (de)compression is though, though I'm fairly sure it's slower then zip (de)compression.