- Joined
- Mar 24, 2011
- Messages
- 1,081
I want to store a few (maybe around 200
) units - position ,unit-type, and facing angle, and 2 heroes - exp, stats, items.
I have read that hashtables are slower than variables and in some state (late game) id have to replace all the units with new ones and the heroes with their exp,stats and items from earlier.
So which is better to use variables or hashtable ?
) units - position ,unit-type, and facing angle, and 2 heroes - exp, stats, items. I have read that hashtables are slower than variables and in some state (late game) id have to replace all the units with new ones and the heroes with their exp,stats and items from earlier.
So which is better to use variables or hashtable ?

