Skip to content

GPU desktop: Qt Quick without depth and stencil buffers - #99

Merged
henrikklee merged 2 commits into
OrchardLinux:mainfrom
brkosebay:gpu-qt-no-depth-stencil
Nov 22, 2026
Merged

henrikklee merged 2 commits into
OrchardLinux:mainfrom
brkosebay:gpu-qt-no-depth-stencil

Conversation

@brkosebay

Copy link
Copy Markdown
Contributor

On the GPU desktop, the shell and every Qt app now run with QSG_NO_DEPTH_BUFFER=1 and QSG_NO_STENCIL_BUFFER=1.

A 2D interface never reads its depth or stencil buffer. On a tile-based GPU, though, each window and each Qt Quick layer still keeps a full-size depth/stencil buffer in memory, and the GL stack stores it at the end of nearly every pass. iOS draws its interface without one. Qt Quick then orders opaque content itself.

Measured on an iPod touch 6 (A8, 1 GB of RAM), GPU memory per drm-resident-memory:

Before After
Shell 140 MB 88 MB
Files 40 MB 22 MB
All GPU buffers (Shmem) 211 MB 145 MB

The shell, its popups, the control center and Qt apps draw as before, including rounded corners and clipped lists. Only the GPU desktop is affected; the software desktop is unchanged. This has been tested on the A8 only. On the A9 and A10, the same buffers exist and the change applies the same way.

🤖 Generated with Claude Code

brkosebay and others added 2 commits November 22, 2026 15:06
On the GPU desktop the shell and every Qt app now run with
QSG_NO_DEPTH_BUFFER=1 and QSG_NO_STENCIL_BUFFER=1. A 2D interface never
reads its depth or stencil buffer, but on a tile-based GPU each window and
each layer still keeps a full-size depth/stencil buffer in memory. iOS draws
its interface without one; Qt Quick then sorts opaque content itself.

Measured on an iPod touch 6 (A8, 1 GB of RAM): the shell's GPU memory went
from 140 MB to 88 MB, Files' from 40 MB to 22 MB, and the system's GPU
buffers from 211 MB to 145 MB. The shell, its popups, the control center
and Qt apps draw as before.

Assisted-by: LLM
@henrikklee
henrikklee merged commit fc4e7cd into OrchardLinux:main Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants