Skip to reading
GUI Styling, Shaders & Effects

Performance and runtime rebuilds

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

A static color and a modest border are cheap visual choices. Animated sampling, outlines and Bloom add work. A complex widget can contain many rendered controls, so its element shader may touch far more than one rectangle.

1. Start with one effect on one decorative image.

2. Test the game at its intended resolution and on the slower hardware you support.

3. Compare the same scene with the effect removed.

4. Reduce effect coverage, layer count or animated decoration if input or frame pacing suffers.

5. Keep a readable low-effects style with the same layout and commands.

In 0.86.3.4, runtime property changes that rebuild inventory/save-style widgets can expose stale inventory-widget references in later refresh/navigation paths. Prefer styling those composite widgets before gameplay, or switching between separately authored views, until your exact build’s dynamic path is verified.

Ordinary Button/Image style examples in this book were exercised separately from rebuilding a live inventory widget. Do not update large sets of widget properties every frame just to animate a hover.

A screenshot demonstrates appearance, not a performance guarantee. Check a real play session with the busiest menu open, including scrolling, animated icons, model/video content and input.

Page 65 of 70Permalink
Go to page