Re: [Interest] Recommendation for fast drawing for QtQuick?

2024-05-12 Thread Stan Morris
My first implementation was with QNanoPainter on OpenGL and was not fast
enough. The QSGGeometry code is 4X faster and half the CPU utilization of
QNanoPainter. QNanoPainter has better line quality than what I achieved
with QSGGeomery, but I need not only speed but low CPU utilization.

On Sat, May 11, 2024 at 2:58 AM  wrote:


> -- Forwarded message --
> From: Samuel Stirtzel 
> To: Stan Morris 
> Cc: interest@qt-project.org
> Bcc:
> Date: Sat, 11 May 2024 03:11:40 +0200
> Subject: Re: [Interest] Recommendation for fast drawing for QtQuick?
> Hi,
>
> there is also qnanopainter, an opengl / nanovg based painting library
> for qt, it is available under the zlib license at
> https://github.com/QUItCoding/qnanopainter
> However, I only used this on an i.MX6Q with entaviv on qt 5.15 years
> ago, the performance was very good though.
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Recommendation for fast drawing for QtQuick?

2024-05-10 Thread Samuel Stirtzel via Interest
Hi,

there is also qnanopainter, an opengl / nanovg based painting library
for qt, it is available under the zlib license at
https://github.com/QUItCoding/qnanopainter
However, I only used this on an i.MX6Q with entaviv on qt 5.15 years
ago, the performance was very good though.

Am Mi., 8. Mai 2024 um 22:19 Uhr schrieb Stan Morris :
>
> I need to draw a lot of lines with low CPU utilization in a QtQuick app on 
> ARM i.MX8. Neither QML Shapes nor QNanoPainter are fast enough.
>
> What do you recommend?
>
> Drawing with QSGGeometry is fast enough, but I need to draw lines with widths 
> greater than one pixel and there's an annoying notch on line joins. My first 
> attempt at rounded end caps ends up as single pixels. I see there are ways to 
> draw circles... but I feel like QSGGeometry is the wrong direction. This is 
> Qt 6.7 on Linux (could be Qt 6.8 in a few months).  Surely there is something 
> better?
>
> QSGRenderNode and QRhi look promising, but I want to get an opinion before I 
> spend the next few weeks exploring QSGRenderNode. Also, it would be nice to 
> draw text from C++ to keep the interface simple.
>
> Thanks, Stan
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest



-- 
Regards
Samuel
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Recommendation for fast drawing for QtQuick?

2024-05-08 Thread Stan Morris
I need to draw a lot of lines with low CPU utilization in a QtQuick app on
ARM i.MX8. Neither QML Shapes nor QNanoPainter are fast enough.

What do you recommend?

Drawing with QSGGeometry is fast enough, but I need to draw lines with
widths greater than one pixel and there's an annoying notch on line joins.
My first attempt at rounded end caps ends up as single pixels. I see there
are ways to draw circles... but I feel like QSGGeometry is the
wrong direction. This is Qt 6.7 on Linux (could be Qt 6.8 in a few
months).  Surely there is something better?

QSGRenderNode and QRhi look promising, but I want to get an opinion before
I spend the next few weeks exploring QSGRenderNode. Also, it would be nice
to draw text from C++ to keep the interface simple.

Thanks, Stan
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest