Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Oswald Buddenhagen
On Sun, Mar 24, 2019 at 01:21:20PM +0100, Allan Sandfeld Jensen wrote: > Drivers have slowly stopped using many of the hardware acceleration as > 2D acceleration in many cards have languished and it is often faster > to do in software, or the hardware accelerated ones are very limited > types of op

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Uwe Rathmann
On 3/24/19 2:53 PM, Allan Sandfeld Jensen wrote: ... and I also advocate for the OpenGL engine. Agreed as this is one is available on Windows as well. But unfortunately OpenGL and X11 have been dropped with Qt5 and while X11 had returned with Qt 5.10 I'm not aware of a replacement for "-gra

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Allan Sandfeld Jensen
On Sonntag, 24. März 2019 14:08:08 CET Uwe Rathmann wrote: > Come on this is a technical discussion - not about winning. I have no > problem with being corrected, but you have to come up with some relevant > facts. > This is not a competition, what would a win be? I don't even hold a side, as I s

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Uwe Rathmann
On 3/24/19 1:21 PM, Allan Sandfeld Jensen wrote: As for the code you showed, that is so 90s. Please enable anti-aliasing, and try again. Or do any kind of advanced pattern or line endings and joins. Again: we are talking here about something like an oscilloscope, where we have to draw a polyl

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Uwe Rathmann
On 3/24/19 1:13 PM, Allan Sandfeld Jensen wrote: Because imperative in the case of QPainter means immediate. The result is expected to have been committed to the paint device when the call returns. In case of the X11 paint engine this means that the points have been sent to the X server - not

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Allan Sandfeld Jensen
On Sonntag, 24. März 2019 11:27:41 CET Uwe Rathmann wrote: > On 3/23/19 11:09 PM, Allan Sandfeld Jensen wrote: > > Software implementation is the default for X11 painting, with accelerated > > paths being addons. > > Having those addons is usually pronounced as: the system supports the GPU. > > S

Re: [Development] Does iMX6 support EGL on X11 feature?

2019-03-24 Thread Uwe Rathmann
On 3/22/19 8:28 PM, Konstantin Tokarev wrote: BTW, if your main concern is the performance of real-time plotting, it's extremely unlikely that you'll get better results on EGL/X11 than on EGLFS or EGL/Wayland. Note that you can use QWidgets on any of these platforms without restrctions. Not be

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Allan Sandfeld Jensen
On Sonntag, 24. März 2019 11:40:07 CET Uwe Rathmann wrote: > On 3/24/19 10:41 AM, Allan Sandfeld Jensen wrote: > > Note though that the recommended way of doing hardware accelerated > > painting > > these days with Qt, is using QML or the QtQuick scenegraph from C++. > > QPainter being so sequentia

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Uwe Rathmann
On 3/24/19 10:41 AM, Allan Sandfeld Jensen wrote: Note though that the recommended way of doing hardware accelerated painting these days with Qt, is using QML or the QtQuick scenegraph from C++. QPainter being so sequential and imperative will never be able to take full advantage of OpenGL becau

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Uwe Rathmann
On 3/23/19 11:09 PM, Allan Sandfeld Jensen wrote: Software implementation is the default for X11 painting, with accelerated paths being addons. Having those addons is usually pronounced as: the system supports the GPU. Sure there are systems, where this is not the case and things fall back t

Re: [Development] Does iMX6 support EGL on X11 feature?

2019-03-24 Thread Uwe Rathmann
On 3/24/19 9:33 AM, Denis Shienkov wrote: Yes, I too run X11 on my iMX6 board, but, seems it running without of any acceleration (I use -platform xcb option to run my app). Unfortunately I don't have easy access to our project running on the iMX6 board anymore. But our BSP was made with build

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Allan Sandfeld Jensen
On Sonntag, 24. März 2019 10:07:06 CET Denis Shienkov wrote: > Allan, > > so, do we need in OpenGL support for 2-d acceleration in QtWidget > applications running via X11? When, e.g. we use QPainter? > > I'm already confused... What we need to have to be use the GPU > acceleration on X11 with QtW

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Denis Shienkov
Allan, so, do we need in OpenGL support for 2-d acceleration in QtWidget applications running via X11? When, e.g. we use QPainter? I'm already confused... What we need to have to be use the GPU acceleration on X11 with QtWidgets? 24.03.2019 11:51, Allan Sandfeld Jensen пишет: On Sonntag,

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Allan Sandfeld Jensen
On Sonntag, 24. März 2019 09:36:48 CET Denis Shienkov wrote: > Allan, > > > And typically using the OpenGL backed will be even faster unless you > > need to run X11 remotely. > > Do you mean that OpenGL via EGLFS, without of X11 is faster? For QtWidgets? > No, I mean that if you take X11 over

Re: [Development] QT_XCB_NATIVE_PAINTING makes worse that without of it

2019-03-24 Thread Denis Shienkov
Allan, > And typically using the OpenGL backed will be even faster unless you need to run X11 remotely. Do you mean that OpenGL via EGLFS, without of X11 is faster? For QtWidgets? 24.03.2019 1:09, Allan Sandfeld Jensen пишет: On Samstag, 23. März 2019 19:00:47 CET Uwe Rathmann wrote: Ön Fri

Re: [Development] Does iMX6 support EGL on X11 feature?

2019-03-24 Thread Denis Shienkov
Uwe, > We have an iMX6 board running with X11, so in general it should be possible. Yes, I too run X11 on my iMX6 board, but, seems it running without of any acceleration (I use -platform xcb option to run my app). Here is a part of Qt-build summary:   EGLFS ...