Re: [linux-audio-dev] Re: OpenGL + Audio = Bad Idea?

From: Dave Robillard <drobilla@email-addr-hidden>
Date: Sun May 22 2005 - 11:49:07 EEST

On Sun, 2005-22-05 at 08:34 +0200, Richard Spindler wrote:
> I'm not rendering in the audio threat, I just push a redraw request to
> fltk, and a send an awake event to fltk which is impemented as a pipe
> internally.
>
> I only block waiting for fltk such that I can submit the redraw
> request. It returns immediatly and FLTK goes on drawing it's stuff.
>
> As I said, realtime safeness is not an issue right now, but if you
> have hints to make it more "correct", they are welcome :)
> (Well, I could just use a pipe to wake up fltk to redraw, this should
> be trivial)
>
> Obtaining the best FPS isn't an issue either, because I'm rendering
> video to the OpenGL context, and I mainly want it to stay in sync with
> audio more or less.
>
> -Richard

Ah, sorry I misunderstood/assumed. Assuming FLTK deals with getting
multiple redraw requests while one is still not finished without
blocking, that's fine.

Then again, the fact that you block at all "waiting for fltk" (even if
it is just to submit a request) is probably less than ideal.. but I
won't pretend to know enough about FLTK or what you're doing to say.

-DR-

P.S. Please don't top-post.
Received on Sun May 22 12:15:16 2005

This archive was generated by hypermail 2.1.8 : Sun May 22 2005 - 12:15:16 EEST