Guncat - small 2d f2p game for Mobile + UE4 Post Mortem

Layer is kind of depth, but not every widget increments layer as it processes the widget tree. Some widgets only adjust layout and don’t actually draw anything, like the SBox (SizeBox in UMG). It just controls sizing information, so you could render,

HorizontalBox

  • SizeBox
    ++ Image
    +Image

Both Image’s would be part of the same batch assuming they’re the same texture, because they both are on the same layer. Now, if you had this,

HorizontalBox

  • Border
    ++ Image
    +Image

They will no longer batch because Border draws some of its own stuff, and therefore increments the layer before drawing children.

So many improvements, tick folding (Only tick painted widgets), 1 layout pass, instead of 2. We’re working on even more perf stuff now for 4.9.