hamiltonbb2
Cool Member
- Reaction score
- 0
Hey, my computer almost never lags. And for some reason after I kill about 4-6 heroes on this map. My computer starts lagging. I wanted to post my code and maybe someone could let me know if its theres any bad leaks.
This one is simply to keep the camera locked on every player's unit.
As I was looking through, these seems like its the only trigger that might cause a leak like that. So could this be the problem?
This one is simply to keep the camera locked on every player's unit.
Code:
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable Map Area)) and do (Actions)
Loop - Actions
Camera - Pan camera for (Owner of (Picked Unit)) to (Position of (Picked Unit)) over 0.00 seconds
As I was looking through, these seems like its the only trigger that might cause a leak like that. So could this be the problem?