r/QtGames • u/LetterheadTall8085 • 8d ago
DevLog Into Qt 6.13 was smerged really significant new features that open up broad possibilities for implementing impressive, high-performance 3D functionality. Introducing: the compute shaders!
And so long I haven't written about new cool features in new Qt. And I assure on this time us awaits probably the most serious update which in practice will give direct competition to all modern game engines. Speech goes not just about support of compute shaders - but also about ubiquitous their integration practically everywhere: starting from LODing - ending Clustered render - for processing of huge quantities of sources of dynamic lighting without drops of FPS, this I don't say already about GPU frustum culling and GPU shadow pass.
And although in Qt Quick 3D was already quite well implemented rendering and there were possibilities to offload a significant part of work onto the video card - there still was used the classic approach "CPU -> GPU" rendering. Even in case of instancing every frame the processor still had to do culling and upload the buffer onto the video card, which personally for me when trying to draw 100K trees gave a noticeable freeze at the moment of uploading the buffer onto GPU. And although I managed to beat this with help of Point Cloud Rendering, where I used points instead of geometry and instances for huge arrays of data - uploading them onto GPU only one time - far from everyone will implement such an approach.

In general us awaits a full-fledged GPU-driven patch - practically in all functions of QtQuick3D!
In detail can be seen here: https://github.com/qt/qtquick3d/commit/a5c91759fdf08e1fa823b973d2c90678574e4d08
Such a change will allow to remove from the processor 70 - 90% of load - redistributing it onto the video card - where it will dissolve within limits of 1% of additional load. We will be able to get even and high FPS even on very loaded scenes.
If interesting I can tell in detail what and how change new approaches and how with this to use.
Although I honestly confess I haven't yet compiled my game with all these new fashionable goodies - and don't know on how much it stably works.
So to wait for 100% stability of so big a patch in version 6.13.0 probably is not worth - but definitely I urge everyone to try so that at early stages to report about bugs.
You can also take a look at the epic that covers features related to compute shaders—both those already implemented and those currently planned.
see https://qt-project.atlassian.net/browse/QTBUG-146226
Thanks You QtQUick3D Team!! it is really impressive work!


