Massive lag

Status
Not open for further replies.
Level 5
Joined
Feb 21, 2009
Messages
136
Ok so, I made a map and if you play it online it causes massive lag over time(like 7 min in the game it starts lagging then 8 min it lags more then 9min it lags even more etc.) And if a player leaves it gets a little better for a while. So i checked for memory leaks and fixed all, then I used the Leak Checker program and it found none.. :sad: could anyone take a look? :cute: (I could send a unprotected version in a PM) Ty.
 
Sounds like loop leaks. Basically you get a series of code running repetitivly with no end but you keep on making more of them.
Especially prone with GUIs retarded wait unti condition is met.

Also, I could advise optimizing any perodic events from 0.01 to atleast 0.03 and making them in JASS for even higher execution efficency.
 
The map doesn't use sound triggers, the periodic event is 0.03, only 1 repeating timer that expires every 60s (repeating timers don't leak right? and even if they did I can't imagine one leak every 60s causing massive lag) for the rest i checked it a million times and I cant find it.. could anyone look at it?

EDIT: there is actually a sound leak but that is every 120-400sec, can that cause massive lag that gets a little better as players leave?
 
Last edited:
The map doesn't use sound triggers, the periodic event is 0.03, only 1 repeating timer that expires every 60s (repeating timers don't leak right? and even if they did I can't imagine one leak every 60s causing massive lag) for the rest i checked it a million times and I cant find it.. could anyone look at it?

EDIT: there is actually a sound leak but that is every 120-400sec, can that cause massive lag that gets a little better as players leave?

Maybe all the hosts were laggy?
 
I guess that solves it? You need jass to clean up your leaks.

yea depending on your gui triggers... if youve got very comlex GUI triggers the world edit triggers will be very confusing and slow down your map. Especially if you have many triggers and variables. Just get to know Jass it will clean up your maps code very easily
 
Status
Not open for further replies.
Back
Top