[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44416] Qt toolkit OpenGL could possibly have
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #44416] Qt toolkit OpenGL could possibly have separate painter thread |
Date: |
Tue, 03 Mar 2015 20:58:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 |
URL:
<http://savannah.gnu.org/bugs/?44416>
Summary: Qt toolkit OpenGL could possibly have separate
painter thread
Project: GNU Octave
Submitted by: sebald
Submitted on: Tue 03 Mar 2015 08:58:10 PM GMT
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
I've noticed that Qt toolkit has OpenGL operating in main thread, as the
general rule is that GUI must run in the main thread. However, the
consequence of that is that if large amounts of data are being displayed in a
plot, e.g.,
image(32*rand(20, 5000))
that the refresh in that plot window takes a great deal of CPU resources from
the rest of the GUI so that the main window is in graphics limbo when that
plot may be redrawing. (Try dragging the main window around on top of the
figure and watch.)
The gnuplot toolkit doesn't do this because it is outboard. The FLTK toolkit,
although also using OpenGL, doesn't either. The GUI main window remains
usable regardless of the activity in the plot window.
I'm noting here that Qt developers have recently added a few exceptions to
"must be in main thread rule", and that it may be possible to put QPainter in
its own thread with Qt 4.8 and greater:
http://blog.qt.io/blog/2011/06/03/threaded-opengl-in-4-8/
As I understand, that should fix this screen-refresh issue for Qt graphics
toolkit.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44416>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44416] Qt toolkit OpenGL could possibly have separate painter thread,
Dan Sebald <=