• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell and remove leaks problem

Status
Not open for further replies.
Level 3
Joined
Mar 28, 2010
Messages
42
283967_10150270754119131_799564130_7431579_3916367_n.jpg

original skill is Engineering Upgrade
i use on a hero's ultimate,to upgrade another three skills....
but each time level up i learn this skill , it will be lag a while...
what problem is it?><
how to solve?T^T

and remove leaks
call DestroyGroup (udg_Temp_Group)
call DestroyGroup(udg_Temp_Group)
call DestroyGroup ( udg_Temp_Group)
which one correct?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
original skill is Engineering Upgrade
i use on a hero's ultimate,to upgrade another three skills....
but each time level up i learn this skill , it will be lag a while...
what problem is it?><
how to solve?T^T
You need to preload all the abilities. Try placing hidden units on the map which have them all and they get removed shortly after the map starts. Preloading some of the artwork will also make the frame drop less noticable.

and remove leaks
call DestroyGroup (udg_Temp_Group)
call DestroyGroup(udg_Temp_Group)
call DestroyGroup ( udg_Temp_Group)
which one correct?
All are correct and will work.

call DestroyGroup(udg_Temp_Group)
This is the smallest through so could be considered the best. However if you vexorian optimize your map it does not mater anyway.
 
@nightwalkerg

Preloading effects is done by action Preload, found in Game section.
  • Game - Preload youreffectstring
Egzample:
  • Game - Preload units\troll\Mytroll.mdx
Preloading abilities, via adding custom abilities to units:
  • init
    • Events
      • Time - Elapsed time is 0.00
    • Conditions
    • Actions
      • Unit - Create 1 dummy for Player 1 (Red) at tempp facing Default Building facing degrees
      • Unit - Hide (Last created unit)
      • Unit - Add yourAbility to (Last created unit)
      • Unit - Remove (Last created unit)
You can always skill the 'Add ability' part if you add abilities that you want to preload to dummy unit via object editor.
 
Status
Not open for further replies.
Top