Files
UXP-Jihad/modules/libpref
NotAlexNoyle 75ccf689ef gpu compositor: an in-process OpenGL compositor behind the offscreen widget (JIHAD_GPU_COMPOSITOR)
T-502 (2026-10-17). With JIHAD_GPU_COMPOSITOR in the daemon's environment the headless platform
lists the OpenGL layers backend, off-main-thread composition is forced on over the bundle's
force-disabled pref, and the offscreen PuppetWidget creates an in-process CompositorBridgeParent
whose CompositorOGL draws into an EGL pbuffer context with two renderbuffer window targets (a
texture-backed one costs 370-640 ms a readback on the Adreno 220).

The frame is pulled, not pushed: the vsync scheduler only counts composite requests, the daemon
reads the count (jihad_offscreen_compositor_seq) and asks for a frame in two halves
(jihad_offscreen_compose_start / _poll / _forget): the layer paint on the main thread, then the
compose and the readback on the compositor thread into the daemon's shared buffer, with the
card's zoom and the residual scroll offset as a world transform on the layer tree
(jihad_offscreen_set_view, LayerManagerComposite::JihadSetWorldTransform). The compositor keeps
the window's flipped view on the borrowed target (the intermediate-surface draw cancels a flip
that must exist) and reverses the rows in the readback; the render bounds are the frame's size.
The readback is a band: the layer tree's own diff says what changed (JihadLastChanged) and the
daemon asks for the rows its slot has fallen behind by; the composite is scissored to the rows
read. Opt-in and measured as no gain: a read thread with a shared context, EGL fences and the
two targets used in turn (JIHAD_GPU_READ_THREAD=1), a GPU swizzle pass (JIHAD_GPU_PASS=1), the
round-5 snapshot road (JIHAD_GPU_SNAPSHOT=1).

Tiled content layers are on by default (layers.enable-tiles in all.js: the bundle's goanna.js is
read after the once-only gfx prefs are snapshotted).
2026-11-03 08:53:30 -05:00
..
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00
2018-02-02 04:16:08 -05:00