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:
None.
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.
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.
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.
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
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.
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.