octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44781] Qt (but not FLTK) figure draws empty a


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #44781] Qt (but not FLTK) figure draws empty axes before doing the actual plot
Date: Thu, 09 Apr 2015 01:52:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #5, bug #44781 (project octave):

Hmm, I can't duplicate that here, but OpenGL is very driver dependent.  My
system ends up using the X11 software implementation, which is kind of slow,
so may not behave exactly the same as others.

I see the OpenGL code for drawing objects in libinterp/corefcn/gl-render.cc. 
I don't quite understand how the canvas is accessed.  Is there something to
the OpenGL context and its initialization that directs which window/viewport
it should act on?  Brainstorming, one thing I'm wondering about is that these
OpenGL commands appear to be executed in the Octave thread while the Qt canvas
is instantiated in the main GUI thread. (As you pointed out.)  If so, perhaps
there needs to be a mutex keeping the GUI from acting on the Qt window while
Octave core via OpenGL is drawing in the canvas.  Has that sort of thing been
worked out?

On the other hand, there would still be a window in which the GUI thread could
act on the window if the semaphore is taken, empty axes are drawn, the
semaphore freed, [GUI comes in], the semaphore taken again, the long draw
done, the semaphore freed again.  The Octave thread would have to not let go
of the semaphore.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44781>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]