Commit 0b3e587
perf: default GSK_RENDERER=ngl on Linux
GTK >= 4.22 defaults to the Vulkan renderer. On dual-GPU laptops where the
only Vulkan ICD is NVIDIA's (common Optimus setup), every window then renders
on the discrete GPU: realization wakes it from runtime suspend (~1s added to
first frame on every launch) and keeps it awake for the app's lifetime, even
though the display runs on the integrated GPU. The GL renderer follows the
compositor's device via Mesa/EGL and avoids all of it.
Set at require time, before GTK reads the variable; setting GSK_RENDERER
yourself (including '' for GTK's own choice) takes precedence.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 77f5492 commit 0b3e587
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
5 | 17 | | |
6 | 18 | | |
7 | 19 | | |
| |||
0 commit comments