On 8/31/08, simpsus_science <[EMAIL PROTECTED]> wrote: > > actually, that works. > But it leaves me kind of wondering: > What happens to all the ressources? all the sprites etc. > I suppose they don't get killed with the window they are drawn in...
Textures and buffer objects are deleted when their owning objects (e.g. sprite) are garbage collected. If you have some circular references (or if pyglet hasn't had a chance to break it's own circular references) then the garbage collector won't pick up the sprites until there's memory pressure. Unfortunately it can't detect memory pressure in the GPU, but most modern video drivers will page unused textures out of GPU memory automatically. Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
