AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   remove_entity background work? (https://forums.alliedmods.net/showthread.php?t=92134)

gangien 05-10-2009 15:11

remove_entity background work?
 
So i have a problem where i do esentially
PHP Code:

create_entity(bunch of entities);

//some other point when user does something

delete_entity(bunch of entities);
create_entity(bunch of entities); 

this results in "ED_Alloc: no free edicts"
which crashes the server.

if i add a half second delay inbetween delete and create, it works just fine. However, if it's a .1 second delay it crashes as it did without any delay.

Is there some sort of garbage collection that's going on in the abckground? and further if there is, is there a better way of letting it gc without just adding a magical delay in there?

Thanks


All times are GMT -4. The time now is 01:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.