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.
ObjectPools |
|
Create and manage pools of objects for retrieval and reuse later. |
Copyright © 2024 BYOND Software.
All rights reserved.