Hi,

I have a slow memory leak in my pyglet 1.2 program and I have no idea
how to debug it. I do a lot of Sprite creation and destruction. The
two pyglet classes I use are Sprite and Animation.

create:
    obj._animation = pyglet.image.Animation(frames)
    obj._sprite = pyglet.sprite.Sprite(obj._animation, **kwargs)

destroy:
    if obj._sprite:
        obj._sprite.delete()
    obj._animation = None
    obj._sprite = None

However after several thousand of these loads and unloads the memory
use is over 8gb even though inspection of my object list shows only
the currently in-use objects (eg five or six objects) with sprites
attached.

I'm not using Batch and gc.garbage shows an empty list.

So yeah, not sure where to start debugging this stuff, any pointers appreciated!

Regards,
Luke

-- 
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/d/optout.

Reply via email to