Re: Using opengl in a thread?
Hi,
1. which platform do you use (OS X, Linux, Windows, all of them) ?
2. does your rendering contain/only/ OpenGL calls (glDrawElements, glBegin/glEnd, etc.) and
no other graphics related calls like CAPI (and/or Cocoa in case of OS X) ?
2.1. If yes, then it should be fairly easy: you have to create the OpenGL context in the thread which
is supposed to render.
As long as all OpenGL calls are issued in the thread where the OpenGL context is created,
you should be safe.
But if I understood the problem correctly: you are rendering (with GL), then grab the frame buffer
and write it to disk ? In that case, you can still decouple OpenGL rendering from all the rest,
but somewhere you have to queue the captured frames, since the write-to-disk will be the
slowest of all parts (esp. when compression comes into play).
HTH,
/wg
On 07/01/2013 07:25 PM, quinn jarrell wrote:
> Hi I've got a lisp project which uses Lispworks Opengl and capi to
> display some data. The display takes a super long time to render and
> then the rendering to disk, so I want to be able to continue while its
> processing. But when its rendering, it freezes the lispworks process
> until its finished. Is there any way to make it nonblocking so I can
> run my graphing function without it freezing lispworks?
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html