tstriker / hamster-experiments

Follow the link for documentation:
https://github.com/tstriker/hamster_experiments/wiki
GNU General Public License v2.0
61 stars 6 forks source link

changing z-order on a sprite #12

Closed jedierikb closed 14 years ago

jedierikb commented 14 years ago

When you change z-order on a sprite, that sprite should get resorted

jedierikb commented 14 years ago

I guess the workaround is to remove_child, change z order, and add_child

tstriker commented 14 years ago

fixed

jedierikb commented 14 years ago

Thank you for the fix.

If you are resorting a lot of children, or just swapping the z-order of two children, the current implementation requires multiple sorts. I wonder if it makes sense to wait until the next rendering to do a parent's sorting so that it is only done once.

tstriker commented 14 years ago

avoid premature optimizations