Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Map is Lagging Too Much
Map is Lagging Too Much
This topic is locked. You can no longer write replies here.
Jun 10 2010, 6:12 am
By: Warlord_Master  

Jun 10 2010, 6:12 am Warlord_Master Post #1



my map has 1300 units placed, about 14 levels for my sniper map but the problem is it is lagging heavily now. is there any ways to reduce lag or any general reasons.
i was searching for map limits but it returned not found...

Attachments:
Sniper Requiem 2.0.scx
Hits: 2 Size: 532.39kb



None.

Jun 10 2010, 7:11 am NudeRaider Post #2

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

Try removing a couple hundred units for testing purposes. Starcraft tends to lag when it closes onto the unit limit.

The other main reason for lag is triggers that affect units. That can be anything from setting hp, creating, ordering or moving them and much more.




Jun 10 2010, 6:53 pm Azrael Post #3



Also, you can create an actual memory leak by misusing "Bring" conditions. If you have a lot of "Bring 0 to Anywhere" conditions, you should replace them with "Commands exactly 0" instead. There is no difference except for the lag produced.

If you use too many "Bring" conditions over a large enough area, you can easily make the map so laggy it's unplayable even in single-player.




Jun 10 2010, 7:20 pm ClansAreForGays Post #4



Quote from name:Azrael.Wrath
If you have a lot of "Bring 0 to Anywhere" conditions, you should replace them with "Commands exactly 0" instead. There is no difference except for the lag produced.
false. If a trigger removes a unit, and then later on in the triggers has a command 0 condition, the condition will run like that removed unit is still there; bring does not.

Do not replace any of your bring conditions without considering this.




Jun 10 2010, 7:43 pm Azrael Post #5



Quote from ClansAreForGays
false. If a trigger removes a unit, and then later on in the triggers has a command 0 condition, the condition will run like that removed unit is still there; bring does not.
This even happened to me once, I can't believe I forgot to mention it :hurr: Thanks for the correction ^^

You can reorder your triggers to account for it though. When replacing Bring with Command, it's a pretty minuscule amount of lag you're preventing by doing this anyways if it's only a handful of triggers, it's if you have a lot of these triggers that it starts to become an issue.

By the way, if you want to easily replace all instances of one thing in your triggers with another:

1) In SCMDraft2, open Trigger Editor (it's under Classic Map Triggers).
2) Select all text, cut/paste it into Wordpad.
3) Use "Replace" to find and replace all instances of X with Y.
4) Select all text, cut/paste it back into SCMDraft2.
5) Hit the Compile checkmark at the top.

I've had time where this has turned hours of work into 30 seconds.

Edit: Tried to open your map, it's protected or corrupted. StarEdit won't even open it.

Post has been edited 2 time(s), last time on Jun 10 2010, 8:00 pm by Azrael.Wrath.




Jun 10 2010, 9:05 pm Warlord_Master Post #6



I found root of problem, i preplace 7 carriers with 8 interceptors = 56 interceptors, i have a boss later that uses the interceptor as a spell but the problem was i had a trigger that constantly moved all interceptors to location X until u fight boss so i assume thats the problem. i thought it was unit lag but it is trigger lag. i fix by spawning the carriers when u actually fight the boss which is more logical.... ty for help



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:30 am]
ClansAreForGays -- When you join a pub lobby because you see 7/8 players, but then realize host is bating you with computers. :flamer: :flamer:
[2024-10-30. : 11:48 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-10-30. : 6:24 pm]
Ultraviolet -- :wob:
[2024-10-29. : 4:33 pm]
Vrael -- :wob:
[2024-10-29. : 1:32 pm]
Zoan -- :wob:
[2024-10-28. : 5:21 pm]
Ultraviolet -- :wob:
[2024-10-27. : 4:34 pm]
jjf28 -- :wob:
[2024-10-27. : 9:01 am]
Zycorax -- :wob:
[2024-10-27. : 3:31 am]
RIVE -- :wob:
[2024-10-26. : 7:12 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: Roy, RIVE