• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
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.
 
Level 5
Joined
Feb 21, 2009
Messages
136
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:
Level 19
Joined
Oct 29, 2007
Messages
1,184
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?
 
Level 3
Joined
Dec 14, 2008
Messages
35
Hmmm, do you use alot of custom models and such maybe the map has to big of a file size to play online correctly without lag?
 
Level 3
Joined
Dec 14, 2008
Messages
35
Well i dont know what to say usually lag like this comes from leaks in the Jass code of the map but maybe its just your computer?
 
Level 3
Joined
Dec 14, 2008
Messages
35
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
 
Level 2
Joined
Feb 24, 2009
Messages
14
Leaks

PM me the map, I will see if I can find something wrong.
Doubt it but it's worth a try. ^^
 
Status
Not open for further replies.
Top