Warcraft III resources & community, 2003–2006 · archived
Super Map lag
8 posts
imported_Bort
#1
Super Map lag
Hi guys my map is lagging so much its unplayable.
This started happening after i made the following trigger:
Move Maze Events Time - Every 0.01 seconds of game time Conditions PauseFinish Equal to False Actions For each (Integer B) from 1 to 999, do (Actions) Loop - Actions Unit - Move Tree[(Integer B)] instantly to ((Position of Tree[(Integer B)]) offset by 50.00 towards 270.00 degrees)
The problem comes when, at any given time, there will be somewhere between 100 and 1000 'Trees' within Maze.gen A snippet of the 'Tree-create' trigger looks like this:
Tree-Create Events Conditions Actions Unit - Create 1 'Tree' for Neutral Passive at (Center of TreeSpawn1 <gen>) facing 270.00 degrees Set Tree[TreeNumber] = (Last created unit) Set TreeNumber = (TreeNumber + 1)
Anyone see why this is lagging? More to the point, is there a simple way that i can stop this lagginf quite so badly?
Dowload We Unlimited and use the Tree models there and use them as a model for a footman, (If you are trying to make a tree move) and just order the footman to move to that point....
imported_Bort
#8
hmmm that does actually sound a lot better than actually move(instantly)-ing the tree... i already got those tree models btw....