Template:ItemBox: Difference between revisionsGive feedback
Add lowGraphics flag bundling the cheap layers and a 1x icon request, so callers rendering many cards set one parameter (with help from vergir-bot LLM) |
Test whether the paper blend is what keeps picture cache tiles invalid: drop it from lowGraphics (with help from vergir-bot LLM) |
||
| Line 23: | Line 23: | ||
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 bundles the cheap variants below and drops the icon request to | one page. It bundles the cheap variants below and drops the icon request to | ||
1:1 with the card | 1:1 with the card. The paper blend is dropped too: mix-blend-mode stops | ||
WebRender caching those regions as static tiles, so every scrolled frame | |||
re-rasterises and re-uploads them. That is measured as ~93 ms/s of memcpy | |||
inside the render thread and ~76 picture cache invalidations per second. | |||
-->{{#vardefine:lowGraphics|{{#ifeq:{{{lowGraphics|}}}|true|itembox-ramp-wear itembox-flat-icon itembox- | -->{{#vardefine:lowGraphics|{{#ifeq:{{{lowGraphics|}}}|true|itembox-ramp-wear itembox-flat-icon itembox-no-texture}}}}<!-- | ||
-->{{#vardefine:iconPx|{{#ifeq:{{{lowGraphics|}}}|true|{{#expr: 80 * {{#if:{{{size|}}}|{{{size}}}|1}} }}|160}}}}<!-- | -->{{#vardefine:iconPx|{{#ifeq:{{{lowGraphics|}}}|true|{{#expr: 80 * {{#if:{{{size|}}}|{{{size}}}|1}} }}|160}}}}<!-- | ||