- Joined
- Jul 28, 2013
- Messages
- 768
Hello guys,
This is like the 100th edition of me asking about leaks to double check. So please bear with me.
1) Using Target of current camera view like this? (This was used in the campaign maps)
2) So, should i use this:
3) Using a condition like this, does it count as a group leak?
4) If i wanted to make a Two Plate Puzzle like they did in the campaign in UndeadX07c, where you have to press both plates at the same time. (the plates work like push-buttons)
Can i rely on this?:
(Checking if there are units on the plate)
5) I noticed that when i start a game, Warcraft uses about 280mb and after a while of playing the map, the RAM usage gets up to 340mb and sometimes more. Does that necessarily mean that the map has memory leaks?
I ran a little test with my map, in 20 min of doing nothing the reserved memory for Warcraft 3 went from 280mb to 315mb. So, i disabled all 8 triggers that i spoke about in Question 4, and in 20min test the Ram usage went from 280mb to 295mb. Does that mean that these 8 triggers leak or might just be a coincidence?
(The triggers are like the ones from Question 4, they use a periodic event to check if there are units in a region, there are no group or point leaks in the actions.)
6) Aside from memory leaks, do periodic events (like every 0.10sec) exhaust the CPU or cause trouble?
Please let me know what you think guys and if there are any issues with the triggers.
Thank you.
This is like the 100th edition of me asking about leaks to double check. So please bear with me.
1) Using Target of current camera view like this? (This was used in the campaign maps)
-
Sound - Play Earthquake <gen> at 100.00% volume, located at (Target of current camera view) with Z offset 0.00
2) So, should i use this:
-
Set TempPoint = (Target of current camera view)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Region100 <gen> contains TempPoint) Equal to True
-
-
Then - Actions
-
Sound - Play Sound at 100.00% volume, located at TempPoint with Z offset 0.00
-
Custom script: call RemoveLocation( udg_TempPoint )
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Region100 <gen> contains (Target of current camera view)) Equal to True
-
-
Then - Actions
-
Sound - Play Sound at 100.00% volume, located at (Target of current camera view) with Z offset
-
-
Else - Actions
-
3) Using a condition like this, does it count as a group leak?
-
(Number of units in (Units in Region 215 <gen>)) Greater than or equal to 1
4) If i wanted to make a Two Plate Puzzle like they did in the campaign in UndeadX07c, where you have to press both plates at the same time. (the plates work like push-buttons)
Can i rely on this?:
(Checking if there are units on the plate)
-
Events
-
Time - Every 0.10 seconds of game time
-
-
Conditions
-
(Number of units in (Units in Region 216 <gen>)) Greater than or equal to 1
-
-
Actions
-
((Random item in Region 216 <gen>) is in Region 216 <gen>) Equal to True
5) I noticed that when i start a game, Warcraft uses about 280mb and after a while of playing the map, the RAM usage gets up to 340mb and sometimes more. Does that necessarily mean that the map has memory leaks?
I ran a little test with my map, in 20 min of doing nothing the reserved memory for Warcraft 3 went from 280mb to 315mb. So, i disabled all 8 triggers that i spoke about in Question 4, and in 20min test the Ram usage went from 280mb to 295mb. Does that mean that these 8 triggers leak or might just be a coincidence?
(The triggers are like the ones from Question 4, they use a periodic event to check if there are units in a region, there are no group or point leaks in the actions.)
6) Aside from memory leaks, do periodic events (like every 0.10sec) exhaust the CPU or cause trouble?
Please let me know what you think guys and if there are any issues with the triggers.
Thank you.
