Figure: Diagnostic workflow: Overlapping screen UI → Reduce shaded coverage → Compare GPU time
Figure: Diagnostic workflow: Overlapping screen UI → Reduce shaded coverage → Compare GPU time

Cause and mechanism

Overdraw means drawing repeatedly over the same screen area. Large overlapping transparent uGUI elements can make the GPU recompute those pixels many times. Inspect GPU time, overlap, and CanvasRenderer transparent-mesh culling. A Graphic with zero alpha is not necessarily drawn; also distinguish CanvasGroup input controls from visibility controls.

Check and correct the setup

  1. Inspect actual UI draws and device GPU cost.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order
  2. Reduce unnecessary fullscreen layers; disable graphics/canvases/objects according to lifecycle needs.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order
  3. For input-only graphics, separate geometry generation from raycasting. Blocks Raycasts/Interactable do not hide visuals.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order

Limits and verification

Splitting canvases for CPU rebuilds is distinct from reducing GPU overdraw. Compare visuals, input, draw count, and GPU time.

A focused diagnostic setup

Remove overlapping fullscreen images individually and compare device GPU time at equal resolution. Freeze UI updates separately to distinguish rebuild from fill cost.

Test in this order

  1. Inspect whether supposedly hidden graphics still issue draws.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order
  2. Reduce unnecessary overlap/area while checking visuals and input.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order
  3. Record GPU time, draws and Canvas update cost separately.
    Inspect overlapping surfaces and draw / storage order
    Inspect overlapping surfaces and draw / storage order

Interpret the result

GPU-only improvement suggests fill; CPU-only improvement suggests updates/layout. Alpha, interactability and raycast blocking have different roles; verify visibility and input separately.

Related explanations

References