View Single Post
Old 10-01-2010, 07:02 PM   #2
In Flames
akolyt0r's Avatar
Join Date: Jan 2006
Posts: 1,154

Submissions (3)

akolyt0r has a spectacular aura about (120)


you have like:
12*2*100*60 = 144000 memory leaks per minute
you have to call RemoveLocation, or else you will have massive point leaks

you need to replace each line of your trigger with something like:
Set TempUnitPoint = Position of Random Unit from Units of type Main Unit
Set TempUnitOffsetPoint = TempUnitPoint offset by 320 towards XXX degrees
Unit - Move XXX instantly to TempUnitOffsetPoint
CustomScript - call RemoveLocation(udg_TempUnitPoint)
CustomScript - call RemoveLocation(udg_TempUnitOffsetPoint)

also i would try to replace 0.01 seconds with 0.002 seconds, it will most likely still look smooth in game, but the trigger will cause 50% less performance issues
akolyt0r is offline   Reply With Quote