#Approach method for instantiate Unit via House structure as in AOE game.

1 messages · Page 1 of 1 (latest)

sly inlet
#

My structure in my game instantiate Entity every 5 - 7 seconds (if you have played AOE before, you will totally understand what i said).
And if i just Instantiate them one by one like that, a lot of sync points will be created.
Any approach could help me reduce number of sync point for better performance?

vestal vapor
#

creating a few entities every 5-7 seconds won't even be noticable

#

every time a projectile hit a target, it destroyed itself and created 2 new entities

#

what's more important is when you create these entities and ensuring that the creation causes as little syncing as possible of your job threads