by Ter13
Create and manage pools of objects for retrieval and reuse later. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Ter13.ObjectPools##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 0.1a
Date added: Sep 14 2013
Last updated: Oct 2 2013
8 fans
Instantiation of movable objects in DM creates a small, but noticeable bottleneck.

For objects that you need to keep a certain amount of around, it's usually best to keep them somewhere out of use for a little while, then pull them out of the pool again later.

This library keeps a number of global lists available for mobiles (per type), and also allows you to retrieve them again later.

This system is meant to be used with movable atoms only. Other types, such as datums, aren't communicated from server-to-client, and thus don't induce the same bottleneck. atoms/turfs/areas can't be relocated, and thus can't be used for dynamic pooling.

This library is under heavy development at the time of writing, so please report bugs and request features in the forums.

For feature reference, see this post.