• 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.

Special effect or Dummy (missile - efficiency)

Status
Not open for further replies.
Level 6
Joined
Jul 14, 2020
Messages
128
Hi hive, I have a question about which is more efficient in this case:
I want a normal unit to work like a missile, so I make it transparent to visually put the "new unit model" on top of it (as if it changes models, when it really doesn't). This can be done in 2 ways, by creating a special effect that will constantly follow the unit OR by creating a new dummy unit with the new model that will also constantly follow the original unit.
Which of the two ways is more efficient, consumes less RAM and generates fewer leaks?
I am comfortable with both ways, but I want to know which one is better in terms of efficiency.

Thx :grin:
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,876
What about the third option: Use only Special Effects
Though this depends on which version of Warcraft 3 you're using.

Anyway, it's safe to assume that a Special Effect is less taxing than a Unit. Think about all of the properties of a Unit vs a Special Effect.
 
Status
Not open for further replies.
Top