2025-06-15 14:32 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003833Spring engineGeneralpublic2015-06-03 00:05
ReporterPepeAmpere 
Assigned Toabma 
PriorityhighSeveritymajorReproducibilitysometimes
StatusclosedResolutionnot fixable 
Product Version94.1.1+git 
Target VersionFixed in Version 
Summary0003833: notAmap (generated map): lags when playing, seems as pathing lags
DescriptionWhen many players in game, the game is laggy, increase with numbers of units and number of players in game.

Move order for many units can freeze the game sometimes for few seconds.
Steps To ReproduceTry this nightly release of notAmap http://nota.googlecode.com/files/notAmap-0022.sdz with mapOptions:

maptype = mediterranean
hash = 1..99999 (any of these numbers, but not empty! springlobby have problem with it sometimes when hosted)

(it should work with default values, too, but some testers had issues)
Additional Information- worse with more players in game (with 2 its noticable, with 4 it becoms unplayble)
- if more terraforming on the map, bigger lags
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003831closed notAmap (generated map): no repathing status bar 
related to 0003832resolvedabma notAmap (generated map): starting lag 
+Relationships

-Notes

~0010824

PepeAmpere (reporter)

attached images shows the problem: 20 aircrafts were sent over the map, and game was slower, slower, slower... dead.

~0010881

jK (developer)

images show that lag happens in :Draw -> not Sim related at all

~0010892

PepeAmpere (reporter)

Last edited: 2013-06-21 04:35

View 2 revisions

oh whole response lost, so again, shorter:

1) What belongs to Draw? Can I affect it as game/map developer?

2) No matter in which category it belongs, it happends just after units are sent on huge distance, so the problem is somehow binded with moving (maybe drawing moving, not caluclating moving, but still moving)

Observation1: with all NOTA widgets, UI off, its still the same. I dont know about any gadget doing some huge operations over units.

Observation2: I tried to play notAmap with different game for comparation - TechAnnihilation. The lag is not present there in same way (its there, but not massive). For slowdown you need hundreds of flying units. In both games (NOTA, TechA) i was using similar units - Freedom Fighter, in most of unitDefs units are similar, models are almost the same, only big difference is in fly altitude. Some NOTA airplanes fly very high (+/- 500) in comparation with other games. Maybe high fly calculations/drawing can cause the problem.

~0010894

PepeAmpere (reporter)

can be LOS the reason? ive tested NOTA with lower LOS resolution:

losMipLevel = 3,
airMipLevel = 4,

and huge lag is not present now with so small number of units.

If this is the reason, i found a solution, just increase those two values, but still there are 2 issues remaining to solve:

1) current default values are bad

losMipLevel = 1,
airMipLevel = 2,

if just 20 flying units are able to kill whole game in 0.0000001 fps

2) why this setting the parameters in modrules.lua dont work:

los = {
    losMipLevel = 3,
    airMipLevel = 4,
},

and this works:

  sensors = {
    los = {
      losMipLevel = 3,
      airMipLevel = 4,
    },
  },

I mean why this table has 3 levels, but other tables in modrules has just 2 levels? Theres no mention about this "feature" in wiki, btw: http://springrts.com/wiki/Modrules.lua ... shall I update the wiki or you plan to change this?

~0010924

PepeAmpere (reporter)

Last edited: 2013-06-24 01:36

View 2 revisions

btw this LOS-lag and many units-sent lag is not just notAmap related, it happends in any game with many units (94.1), just on notAmap its worse (easier to get the lag)

~0014520

abma (administrator)

i don't see a bug in spring here.

could be every lua gadget or widget which uses opengl.

maybe the map borders?!
+Notes

-Issue History
Date Modified Username Field Change
2013-06-02 22:56 PepeAmpere New Issue
2013-06-03 00:43 abma Relationship added related to 0003831
2013-06-03 00:43 abma Relationship added related to 0003832
2013-06-03 21:30 PepeAmpere File Added: after-20-planes-sent.jpg
2013-06-03 21:31 PepeAmpere File Added: after-20-planes-sent2.jpg
2013-06-03 21:32 PepeAmpere Note Added: 0010824
2013-06-19 02:14 jK Note Added: 0010881
2013-06-21 04:34 PepeAmpere Note Added: 0010892
2013-06-21 04:35 PepeAmpere Note Edited: 0010892 View Revisions
2013-06-21 17:25 PepeAmpere Note Added: 0010894
2013-06-24 01:36 PepeAmpere Note Added: 0010924
2013-06-24 01:36 PepeAmpere Note Edited: 0010924 View Revisions
2015-06-03 00:05 abma Note Added: 0014520
2015-06-03 00:05 abma Status new => closed
2015-06-03 00:05 abma Assigned To => abma
2015-06-03 00:05 abma Resolution open => not fixable
+Issue History