Aller au contenu

Photo

infinite creature spawning without CreatePool [SOLVED]


1 réponse à ce sujet

#1
FanfanVilperdue

FanfanVilperdue
  • Members
  • 18 messages
Hi,

  I'd like to generate random teams of ennemies on and on. Once the previous team is destroyed, I spawn a new team with approximately 10 random creatures, each chosen between circa 100 creatures resources. The problem is, if I use CreatePool, I need to have 1000 creatures in pools... and area loading will fail most of time.

  So for the moment, I use CreateObject each time (but without CreatePool at the beginning), and each time a team is killed, I use Safe_Destroy_Object in order to prevent overloading the area with useless objects.

  Is there a danger doing so? Can there be a memory leak in any way? Thanks a lot in advance for your help.

 

Modifié par FanfanVilperdue, 27 avril 2010 - 04:58 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
I think it will work fine. You may notice significant hitching when you make all those create object calls, but I don't think you have to worry about memory.