Hi,
is there a way to remove a display object from display group without deleting rendering-related resources?
In object:removeSelf() documentation it says,
“”"
When an object is removed, the rendering-related resources of the removed object are deleted immediately.
“”"
But that’s NOT the behaviour I want. I’d like to put that display object into a queue and reuse it. The reason I need to do that is because on Android, it seems like creating new display object is an expensive operation. In our game, we have to generate new game item dynamically and if we do display.newImageRect as the game plays, it lags our game like crazy (we generate about 10~20 items per generation).
So the workaround for us is pre-generate display objects and reuse it over and over. So we need a way to remove display object from display group without deleting rendering-related resources.
Is it possible? [import]uid: 120903 topic_id: 33346 reply_id: 333346[/import]