Repository navigation
GPU desktop: Qt Quick without depth and stencil buffers - #99
Merged
Merged
Conversation
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
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the GPU desktop, the shell and every Qt app now run with
QSG_NO_DEPTH_BUFFER=1andQSG_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: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