We've come across a memory leak in Pyglet 1.1 while writing our PyWeek
entry. The following is a fairly minimal test case, but all the
obvious variations seem to exhibit the same effect. Anyone any ideas?

Martin


import random
import gc
from pyglet import window, clock, text
from pyglet.gl import *

w = window.Window()
l = text.Label("", font_size=w.height, x=w.width/2, y=w.height/2,
halign="center", valign="center")
f = clock.ClockDisplay()

while not w.has_exit:
    w.dispatch_events()
    w.clear()
    l.text = "".join(map(lambda x: random.choice("abcdef"),
xrange(3)))
    l.draw()
    f.draw()
    w.flip()
    gc.collect()
    clock.tick()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to