Draw on the GPU: the desktop with OpenGL ES, apps through linux-dmabuf
The host's rasteriser has a GPU half (raster_gpu.c): the same primitives, drawn the same way, on machines with a real GPU and OpenGL ES 3, straight into the display's buffers in a login session. EGL and GLES are loaded at run time; without them everything is drawn on the CPU as before (CHANDRA_GPU=0 does that too). zwp_linux_dmabuf_v1 lets apps draw on the GPU as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d81003f176
commit
cfb25fe699
26 files changed
+2485
-105
No files matched your search
@@ -89,8 +89,9 @@ session), `--x11` (on Xorg; `--fullscreen` under a window manager, `--login-sess
|
||||
desktop session), `--theme PATH`, `--no-restore`, `--profile`, `--size WxH` and `--gfx-out frame.png`
|
||||
(render to a PNG, headless; add `--serve` to keep refreshing it). `WASMHOST_PROFILE=1` prints the
|
||||
time spent in each host function every 5 seconds; `WASMHOST_TRACE=1` logs every host call.
|
||||
No GPU? Chandra detects it and asks less of the CPU; `CHANDRA_RENDER=software|hardware` or
|
||||
Settings > Session > Lighter animations overrides it, and `CHANDRA_FRAME_TRACE=1` logs frame times
|
||||
With a GPU (OpenGL ES 3) the host draws the desktop on it and apps draw on it too (linux-dmabuf);
|
||||
`CHANDRA_GPU=0` keeps the desktop on the CPU. No GPU? Chandra draws on the CPU and asks less of it;
|
||||
`CHANDRA_RENDER=software|hardware` or Settings > Session > Lighter animations overrides that, and `CHANDRA_FRAME_TRACE=1` logs frame times
|
||||
([docs/rendering.md](docs/rendering.md)).
|
||||
|
||||
`CHANDRA_DEBUG_CONFIGURE=1` (any host) logs each window's configures, acks and committed buffer
|
||||
|
||||
Reference in new issue
Block a user