Module:ItemData/nav: Difference between revisions

Jump to navigation Jump to search
Use the single lowGraphics flag for navbox cards now that ItemBox bundles the cheap layers and the 1x icon request (with help from vergir-bot LLM)
Update stale LOW_GRAPHICS comment to describe the current cacheable-overlay behavior (with help from vergir-bot LLM)
Line 14: Line 14:


-- The card navboxes put every item on a single page, so their cards opt into
-- The card navboxes put every item on a single page, so their cards opt into
-- the cheaper ItemBox rendering: a gradient instead of the masked wear tint, no
-- the cheaper ItemBox rendering via lowGraphics. This swaps the paper texture
-- icon mask, one shared paper, and an icon requested at the size it is actually
-- from the normal-mode multiply (which blends two images and is re-rasterised
-- drawn. Each of those is a render pass, a backdrop read or a texture upload the
-- every scrolled frame) to a transparent-paper overlay that is a single
-- GPU would otherwise repeat for every card on screen. See [[Template:ItemBox]].
-- cacheable image, the one change that carried the navbox scroll cost. The wear
-- Only the ItemBox branch of write_wrapped_item_list uses this; the ItemIcon
-- and icon masks stay at full detail, since a single-image mask caches fine.
-- lists are unaffected.
-- See [[Template:ItemBox]]. Only the ItemBox branch of write_wrapped_item_list
-- uses this; the ItemIcon lists are unaffected.
local LOW_GRAPHICS = "|lowGraphics=true"
local LOW_GRAPHICS = "|lowGraphics=true"