Template:ItemBox: Difference between revisions

Jump to navigation Jump to search
Ship texture=no in lowGraphics: every paper approach reintroduces an image blend that WebRender re-rasterises each frame, so no texture is the only fast option (with help from vergir-bot LLM)
Restore the icon mask and real masked wear on the lowGraphics path, keeping only texture off, to measure whether the masks affect scroll caching (with help from vergir-bot LLM)
Line 22: Line 22:


     lowGraphics=true is the setting for callers that place dozens of cards on
     lowGraphics=true is the setting for callers that place dozens of cards on
     one page. It drops the paper texture entirely, because every way of drawing
     one page. It drops the paper texture, because every way of drawing it
     it multiplies two images together, and WebRender re-rasterises and re-uploads
     multiplies two images together, and WebRender re-rasterises and re-uploads
     any such blend on every scrolled frame instead of caching it as a static
     any such blend on every scrolled frame instead of caching it as a static
     tile. On the profiled navbox that blend was the whole cost: dropping it took
     tile. On the profiled navbox that blend was the whole cost: dropping it took
     the render thread's OpenGL work from ~230 ms/s to ~10 and roughly doubled
     the render thread's OpenGL work from ~230 ms/s to ~10 and roughly doubled
     the frame rate. The wear tint also becomes a gradient and the icon mask is
     the frame rate. The wear and icon masks are clips of a single image, not
     dropped, both cheaper per card, though the texture is the change that matters.
     blends of two, so they cache once rasterised and are kept at full detail
-->{{#vardefine:lowGraphics|{{#ifeq:{{{lowGraphics|}}}|true|itembox-ramp-wear itembox-flat-icon itembox-no-texture}}}}<!--
    here; only the texture is dropped.
-->{{#vardefine:lowGraphics|{{#ifeq:{{{lowGraphics|}}}|true|itembox-no-texture}}}}<!--


     The same layers individually, for testing combinations or overriding the
     The same layers individually, for testing combinations or overriding the