Acceptable Lag
Nov 27 2008, 9:28 pm
By: SelfPossessed  

Nov 27 2008, 9:28 pm SelfPossessed Post #1



I have downloaded Tux's map lag test at http://www.staredit.net/maplantis/index.php?sid=a54eae177e;map=399

Whereas that map showcases which actions lag the most, it does it for 1000 units. Its purpose was to determine which actions were the worst, not what was the acceptable amount. If I understood it correctly:
- remove and give and move units are the worst offenders
- kill is laggy, but surprisingly not as much as the others
- orders are laggy only when continuously used with units near each other. I think this is due to the zerglings trying to find a path when there was none, so air units are probably exempt
- create was never tested alone, but it still seems laggy
- ai scripts (well, only junkyard dog was tested) seem to have little lag
- center loc, center view, remove/give/move/kill with no units nearby, and orders when units were far enough had little to no lag

In my map, most of my laggy actions are not continuous. As in, several gives/removes/creates/etc. will happen only when the player casts a spell or periodically every couple of seconds. That kind of lag won't really be that noticeable as it isn't continuous. My problem is when there is a continuous use of laggy actions.

At the moment, the only continuous laggy action I have is during a spell (it lasts around 5 seconds) where I need to constantly cycle through 22 units to check which enemies are nearby. I'm cycling through 22 Interceptors and 22 Carriers (1 Interceptor per Carrier). Technically, that's 44 gives, as it's 2 units each to check each unit, then another 44 at the end to give them all back to the original player. That's 88 gives per trigger loop. I'm worried that 88 gives like that will cause lag considering all the other units and triggers on the map.

So, if anyone knows, what is the acceptable maximum number of laggy actions per trigger cycle such that the map is still playable?



None.

Nov 27 2008, 9:35 pm Falkoner Post #2



If your tests are not lagging, chances are it won't lag in-game either. Usually any actions that involve units, other than centering locations, cause more lag than anything else. If you do start lagging, you can do what Tuxlar ended up doing and slow down your hypertriggers so the triggers don't happen so often, although with the systems you have, maybe that isn't an option.

Of course, it really comes down to internet speed and computer speed, if someone has a crappy computer, or 56k, they're going to lag, and there's pretty much nothing you can do about it.



None.

Nov 28 2008, 12:50 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Falkoner
Of course, it really comes down to internet speed and computer speed, if someone has a crappy computer, or 56k, they're going to lag, and there's pretty much nothing you can do about it.
Connection speed has no influence on trigger lag since triggers are calculated locally.
Sc only transfers player input such as mouse clicks and movements.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[02:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[08:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
[2026-7-15. : 2:19 am]
Symmetry -- NudeRaider
NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
[2026-7-14. : 11:43 pm]
Ultraviolet -- let's take each other's clothes off :teach:
[2026-7-14. : 11:03 pm]
Vrael -- :teach:
[2026-7-14. : 11:03 pm]
Vrael -- I mean, my clothes
[2026-7-14. : 11:03 pm]
Vrael -- I will take your clothes off
[2026-7-14. : 7:13 pm]
NudeRaider -- I am gettin' so hot :teach:
Please log in to shout.


Members Online: lil-Inferno, Roy