[PD] Syncing an event with refresh rate in GEM
Mathieu Bouchard
matju at artengine.ca
Sat Oct 13 23:44:40 CEST 2007
On Fri, 12 Oct 2007, chris clepper wrote:
> On 10/12/07, chris clepper <cgclepper at gmail.com> wrote:
>>
>> On 10/12/07, Mathieu Bouchard <matju at artengine.ca> wrote:
>>>
>>> Ok, then the only solution is to start a small thread that only tries to
>>> display the last completed frame. It's sort of like the threaded
>>> soundfiler.
>> Threading and OpenGL are a no-no. Plus, the driver is just going to stall
>> on all GL calls until the swap is done at refresh.
If you can render to an explicitly off-screen buffer, I imagine that it
would bypass the stalling at the level of all gl commands that use that
buffer, and then you would have that other thread try to copy that buffer
to screen and stall, instead of stalling the main thread. I don't know
whether you can do that with OpenGL. Perhaps it can only be done in an OS
dependent way or maybe not at all. I don't know enough OpenGL to tell.
Maybe you can tell?
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
More information about the Pd-list
mailing list