The object-pools tag has no usage guidance.
12
votes
1answer
677 views
When and why is a Pool class needed to hold objects?
I've been studying opengl es and an example I saw was using a "Pool" class to keep track of touch and keyboard events.
Could someone please explain how and why a pool class is needed. From what I was ...
7
votes
4answers
2k views
Game Messaging System Design
I'm making a simple game, and have decided to try to implement a messaging system.
The system basically looks like this:
Entity generates message -> message is posted to global message queue -> ...
1
vote
1answer
687 views
ParticleEffectPool.obtain() not resetting particles
I want to use ParticleEffectPools in libGDX but I'm running into an odd issue where the effects don't seem to be reset when obtained by the pool. The code below looks for an existing ...
1
vote
1answer
337 views
Java game object pool management
Currently I am using arrays to handle all of my game objects in the game I am making, and I know how terrible this is for performance. My question is what is the best way to handle game objects and ...
0
votes
2answers
233 views
How do I architect around Object Pools?
Example
I have an "Enemy" class, and 5 types of enemy subclasses.
These enemies will be spawn often, so I want to use an object pool.
However, this means I can no longer use an object pool for ...
0
votes
1answer
87 views
Object generation from an existing object in a game engine
To simplify, let's say in en engine I'm coding for a game, I have the Main class an Object class. In the Main class' update method, I loop through the array of all Objects in the game. I also have a ...
0
votes
1answer
88 views
What is a Pool? [duplicate]
According to When and why is a Pool class needed to hold objects?, pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the ...