Aller au contenu

Photo

infinite creature spawning without CreatePool [SOLVED]


6 réponses à 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
FanfanVilperdue

FanfanVilperdue
  • Members
  • 18 messages
Bump.

#3
MOTpoetryION

MOTpoetryION
  • Members
  • 1 214 messages
probably no bigger memory leak then the game came with .IMO but wait for other answers/help to

be sure. Plus i posted so you did'nt have to bump it again : )

#4
FanfanVilperdue

FanfanVilperdue
  • Members
  • 18 messages
Thanks for your opinion, I hope it is so.

MOTpoetryION wrote...
IMO

= "In my opinion", right? Sorry, English is not my mother tongue so I try to get a grab on it, but English forum looks much richer than French one...

Plus i posted so you did'nt have to bump it again : )

You mean you had replied before? Don't understand. :huh:

#5
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.

#6
FanfanVilperdue

FanfanVilperdue
  • Members
  • 18 messages
Thanks a lot David!

#7
jsd313

jsd313
  • Members
  • 184 messages
David is right, the player would get a screen freeze as it creates the objects. The more objects you are creating at that time the longer that screeen freeze will last. There is also an uncontrolable variable, the users PC. A top notch PC is still going to see at least a slight screen freeze. Someone on a computer barely over the minimum specs for the game may freeze up for several seconds if not longer or even crash. This is something we all must consider when building our mods.