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

Some Questions

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,611
HI

I have some questions:

- should i do hashtables or dynamic indexing?

- if i want to create a special effect attached on the overhead for example, i have no location, does that mean that it cant leak? i just did it like that: create spec effect overhead / destroy last created spec effect
 
should i do hashtables or dynamic indexing?
It depend on problem you need to solve.
Also it depends on resources you use.
if i want to create a special effect attached on the overhead for example, i have no location, does that mean that it cant leak? i just did it like that: create spec effect overhead / destroy last created spec effect
It will steal leak as effect, so you need to destroy it when you finish using it.
Care about that, destroy last created spec effect, because if you create 2 effect at same time only last one will be removed and first one will be lost in memory forever (leak).
 
Status
Not open for further replies.
Top