mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Disable object pool debug.
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
* WARNING, only supports /mob and /obj.
|
* WARNING, only supports /mob and /obj.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DEBUG_OBJECT_POOL 1
|
#define DEBUG_OBJECT_POOL 0
|
||||||
#define MAINTAINING_OBJECT_POOL_COUNT 20
|
#define MAINTAINING_OBJECT_POOL_COUNT 20
|
||||||
|
|
||||||
var/list/masterPool = list()
|
var/list/masterPool = list()
|
||||||
@@ -104,6 +104,7 @@ var/list/masterPool = list()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
masterPool[Object.type] = list()
|
masterPool[Object.type] = list()
|
||||||
|
// A way to limit
|
||||||
else if (length(masterPool[Object.type]) > MAINTAINING_OBJECT_POOL_COUNT)
|
else if (length(masterPool[Object.type]) > MAINTAINING_OBJECT_POOL_COUNT)
|
||||||
#if DEBUG_OBJECT_POOL
|
#if DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) exceeds [num2text(MAINTAINING_OBJECT_POOL_COUNT)] discarding..."
|
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) exceeds [num2text(MAINTAINING_OBJECT_POOL_COUNT)] discarding..."
|
||||||
|
|||||||
Reference in New Issue
Block a user