Hey everyone,

I am really enjoying working with Pyglet.  I love the minimal
dependency approach.  One problem I've run into though is slow image
blitting.  When I run the code below that performs 100 blits of the
same 64x64 png image I get about 19 frames per second.

I tried installing the current SVN and get the same result.

Any advice?

Regards,
Jim Storch


-- My System --

Fedora 7 Athlon 3200
GeForce FX5900GT with Nvidia drivers
Running glxgears = 6,700 frames per second

--sample code--

#!/usr/bin/env python
from pyglet import window
from pyglet import image
from pyglet import clock

win = window.Window(640,480,vsync=False)
fps_display = clock.ClockDisplay()
img = image.load('data/images/circle.png').texture

while not win.has_exit:
    win.dispatch_events()
    clock.tick()
    win.clear()
    for x in xrange(100):
        img.blit(320,240, 0)
    fps_display.draw()
    win.flip()


--~--~---------~--~----~------------~-------~--~----~
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