1 decade ago by matteray
When EntityPool is enabled for an entity, number of "draws" in debug bar constantly increases.
Here is my situation: I have an entity which is killed after exiting the screen and re-spawned after that again and is killed again after exiting the screen and goes on ...
At the start, I see 1 entity and 1 draw in debug panel but after a while draw count increases. The wierd thing is that the entities count is always 1. It is like "60 draws" and "1 entities" after a minute or two. When I disable entity pooling for that entity, this does not happen.
Any ideas why this happening?
Here is my situation: I have an entity which is killed after exiting the screen and re-spawned after that again and is killed again after exiting the screen and goes on ...
At the start, I see 1 entity and 1 draw in debug panel but after a while draw count increases. The wierd thing is that the entities count is always 1. It is like "60 draws" and "1 entities" after a minute or two. When I disable entity pooling for that entity, this does not happen.
Any ideas why this happening?