• 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.

Insane Lag.... :(

Status
Not open for further replies.
Level 2
Joined
Jan 7, 2006
Messages
14
Hi, I've been working on a few maps, one of which is called Escape from the Machines. I've actually coded and everything completed about a quarter of the map with obstacles, for a 128x128 map.

I need no actual trigger help, its just that... well, its the most laggy thing I've ever played! I have to turn off about 95% of the triggers to even be able to play it. I thought it might just be an error with testing it, so i went on bnet and put a computer player so i could start. Still lagged. I really am desperate, I've never yet gone to a map help forum and ive been mapping for years. Please help!

Oh and btw, its a Maze type map like Maze of Death, Polar Escape, etc.
 
Level 2
Joined
Jan 7, 2006
Messages
14
It's not laggy? Were all the triggers turned on? I think i might have sent you it with all the triggers except a couple off, to reduce lag...
 
Level 2
Joined
Jan 7, 2006
Messages
14
Okay, I'll tell you what triggers to turn on. Turn on ALL the triggers Except for:

CarDiagonal4 because thats supposed to be off.
 

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
ehm.. I looked at your map.. I see that the Maze Inits make units and the units will make everything lagg like shit.. Maybe place the units yourself would be better and try working it out.. 1000s of units attacking at the same time means lagg and units created at the same time too.. make a delay between.
My suggestion:
Make the map like levels like in pyramid escape.. So make a level which people will have to win and then the level is closed (units stops attacking) and new level opens..
 
Level 2
Joined
Jan 7, 2006
Messages
14
Nope... I tried making them in the editor still lagged. I tried making a delay still lagged. And I cant make it like Pyramid Escape becasue one of the game modes is Race which is a free-for-all type thing, so... yeah.
 
Level 2
Joined
Jan 7, 2006
Messages
14
well, those aren't laggy I found out. I tried turning all the triggers on except the ones that spawn units and it was perfectly fine.. Its frustrating though, ebecause i tried just manually putting a footman in and it lagged like crazy again. I've got units already in, like mortar teams and such, but when i try to make the footmen for this obstacle, it lags again..

I don't know anything about a memory leak, but is it possible for a certain unit type to lag up games really bad? Hey, i'll try that.. make the obstacle with knights instead or something..
 

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
hmm.. I don't think that will change anything. I think that the Order to move to a CENTER of a REGION is a memory leak, cause then it will have to make a variable for the center and I think it doesn't get deleted after. So in my wh40ktd I made a variable called TempPoint, type Point. which I made a trigger for like this:
Set TempPoint = Center of Move 2
Unit - Order Entering Unit to Move to TempPoint

cause then it will always set the same variable..

try putting your units in the map without triggers and then make a trigger for starting movement instead of spawning
 
Level 2
Joined
Jan 7, 2006
Messages
14
well, see, I tried putting the footmen in there just standing there.
I didn't tell them to do anything, and so they just stood there. It still lagged. I tried with different units, it still lagged. Also I dont think move to center of region is a memory leak because im making a tower defense which uses that and its fine.

Thanks very much for all this, I wish it could be easier.. Just irritating having my only obstacle so far be lag, rather than hard coding or that stuff,
 
Status
Not open for further replies.
Top