You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Qwt lib to render a graph, my app uses qml, but as you know Qwt bases on QWidget, so I used QQuickPaintedItem to paint the output of Qwt to my qml app, inspired are from https://github.com/carlos22/qwtquick2.
But this is a performance issue QTBUG-96205 of using QQuickPaintedItem to render a "QWidget's content".
Even though I enabled the QwtPlotOpenGLCanvas of Qwt but I found that this optimization only works for QWidget applications because QOpenGLWidget does not support the render() function with OpenGL. QwtPlotOpenGLCanvas is working well with a widget application, this is example app of Qwt. https://github.com/opencor/qwt/tree/master/examples/refreshtest.
So qnanopainter can help solving the QQuickPaintedItem's performance issue in this case. can't it ?
Actually I tried below solution, the frequency of calling this paint() or update the graph is 40 ms, but my implementation could not solve the CPU% that takes a lot of memory, I guess it is from creating the images.
I don't think you would get notable performance improvement with the above code. Generating images is probably the slow part and not blitting them with QNanoPainter. To get the benefits, Qwt itself would need to be ported QPainter -> QNanoPainter, which is probably quite a big task.
Hi.
I'm using Qwt lib to render a graph, my app uses qml, but as you know Qwt bases on QWidget, so I used QQuickPaintedItem to paint the output of Qwt to my qml app, inspired are from https://github.com/carlos22/qwtquick2.
But this is a performance issue QTBUG-96205 of using QQuickPaintedItem to render a "QWidget's content".
Even though I enabled the QwtPlotOpenGLCanvas of Qwt but I found that this optimization only works for QWidget applications because QOpenGLWidget does not support the render() function with OpenGL. QwtPlotOpenGLCanvas is working well with a widget application, this is example app of Qwt. https://github.com/opencor/qwt/tree/master/examples/refreshtest.
So qnanopainter can help solving the QQuickPaintedItem's performance issue in this case. can't it ?
Actually I tried below solution, the frequency of calling this paint() or update the graph is 40 ms, but my implementation could not solve the CPU% that takes a lot of memory, I guess it is from creating the images.
Thanks for your advice !
The text was updated successfully, but these errors were encountered: