- Joined
- Aug 29, 2004
- Messages
- 159
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 :shock:
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? :lol:
More to the point, is there a simple way that i can stop this lagginf quite so badly?
Bort
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 :shock:
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? :lol:
More to the point, is there a simple way that i can stop this lagginf quite so badly?
Bort