If I run a test code like the following I experience a window freeze (the
close button not working anymore). The application displays the current fps
for some time and if I, for example, click on the window I experience a
freeze.
- The problem is reproduced also on a larger scale with a complex
application (ie this is not related to the fps display thing).
- The problem seems to be solved (there is a performance drop) if at the
end of the on_draw method I put a pyglet.gl.glFinish() call or, I schedule
some call that sleeps for some time.
- It happens only on a system (Ubuntu) with a [GeForce GTX 550 Ti] (rev
a1), using the nvidia driver version 304.51
Am I doing something wrong? This is a known bug?
--------------------
import pyglet
w = pyglet.window.Window()
ds = pyglet.clock.ClockDisplay()
@w.event
def on_draw():
w.clear()
ds.draw()
pyglet.app.run()
--------------------
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/ukhMlIoAbxMJ.
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.