Template:ItemBox: Difference between revisionsGive feedback
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 | one page. It drops the paper texture, because every way of drawing it | ||
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 | the frame rate. The wear and icon masks are clips of a single image, not | ||
blends of two, so they cache once rasterised and are kept at full detail | |||
-->{{#vardefine:lowGraphics|{{#ifeq:{{{lowGraphics|}}}|true| | 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 | ||