News for hackers. Stuff that matters.
Re:Developing a Beautiful and Performant Block Editor in Qt ... by rubymamis on Wednesday December 31, 2025 @02:22AM (#46442145)
Hi there!

> The most common performance issues in decently written applications are rendering of invisible items aka overdraw

That's indeed what I found as well! Especially, these hidden items consume a lot of unnecessary RAM. What tools do you know for Qt/QML that can help with this issue?

Re:Developing a Beautiful and Performant Block Editor in Qt ... by ahartmetz on Wednesday December 31, 2025 @11:25AM (#46445540)
QSG_VISUALIZE=overdraw, and the other options described here help with rendering performance well: https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph-rende...

For another perspective and more details, RenderDoc (or another frame debugger if you have one) is a nice tool as well.

Also don't use Rectangle { color: "transparent" }, use Item {}. An Item has geometry, but doesn't render anything. A transparent Rectangle probably also doesn't render, but it's still (at least slightly) more resource-intensive and makes you look like you don't know what you're doing.

Use Loader, StackView and visible liberally to disable stuff that isn't currently relevant. If unloading causes trouble with lost state, you may be carrying too much state on the QML side.

Re:Developing a Beautiful and Performant Block Editor in Qt ... by rubymamis on Thursday January 01, 2026 @12:23PM (#46455936)
Thanks for that! Really helpful advice here.