Sorry, neither of those things worked (including the time.sleep).

On Mar 6, 10:09 pm, Alex Holkner <[email protected]> wrote:
> On Sat, Mar 7, 2009 at 8:11 AM, Richard Thomas <[email protected]> wrote:
>
> > I've got it down to a much smaller test case, there's no effects or
> > anything anymore, it just crashes within 10-15 seconds. There is a
> > curious line though, commented out, that if uncommented will cause it
> > not to crash. I will let the script speak for itself.
>
> >http://www.chard.ath.cx/~richard/files/opengl_crash.py
>
> The problem is probably due to the vertex data being freed by Python
> while it's still being streamed to the CPU.  I can't reproduce the
> problem on my macbook, but here are some things to try:
>
>  - There is a glFlush() call near the end of
> pyglet/graphics/__init__.py:draw().  Replace it with a call to
> glFinish() or add a small time.sleep().
>
>  - Replace your draw() call with a Batch draw (these keep vertex data
> around indefinitely).
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to