Hello, I've noticed that Qt currently uses shared memory for buffer sharing with Wayland compositors in non-OpenGL rendering applications. However, a more efficient approach would be to use the zwp_linux_dmabuf_v1 protocol. By creating a DMA buffer, mapping it, and performing CPU rendering there, the compositor could directly import the buffers into the GPU, eliminating the need for extra copies. This optimization would significantly improve performance, particularly when scaling large windows on HiDPI displays. The implementation on the Qt side should be almost identical to using shared memory (I think).
I would be willing to implement this, and I would appreciate it if you could guide me to the code that handles this. I assume I should look into the code of the Wayland platform plugin? Best regards, Eduardo Hopperdietzel
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development