<https://lh5.googleusercontent.com/--Fx7IDSs3Wc/Uo_MUwIG_rI/AAAAAAAAASs/Z12u2N6c3OY/s1600/Bildschirmfoto+vom+2013-11-22+22%3A20%3A43.png>
Hi everyone, to improve the performance of my game, i tried to write a single method to pyglet.sprite to remove the sprite's vertex list from batch when it is invisible. The former batch is saved in a different variable and re-added when the sprite comes visible again. This procedure in fact improves the game's perfomance as there are much less vertices in the batch. But, if a sprite became invisible and visible again, it often has lost it's texture and is only displayed as a white quad as shown in the picture. Any suggestions to avoid this behavior? I find it really important to remove invisible sprites from batch as pyglet's performance is decreasing massively even with a few hundred vertices in my main batch. Thanks in advance! Sebastian -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
