So if I'm already calling CleanupDeleteList() prior to reinstantiating
all my entities and I'm still getting the "no free edicts" error do you
have any suggestions? After calling UTIL_Remove on all the unnecessary
entities and making the call to CleanupDeleteList() I'm left with about
50 entities according to gEntList.NumberOfEdicts().  I realize that this
may not reflect the number of free edicts but I don't know of any way to
get that number.  Any suggestions?

-Tim

Jay Stelly wrote:

My first thought was that UTIL_Remove wasn't actually
clearing stuff out until the next frame so I tried waiting to
call Map...Entities() but no luck.  I've also tried calling
SetFree() on every edict that's deleted.
Does anyone have any insight?




I haven't followed this discussion, but yes, UTIL_Remove is not
immediately freeing the entities.

After you've marked them all for delete by calling UTIL_Remove() you can
call this:
        gEntList.CleanupDeleteList();

which will flush all of the queued deletes.

Jay

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders







_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to