Skip to reading
Debugging and Performance Profiling

Find a GUI that rebuilds too often

Edition 0.86.4.5

New 0.86.4.5 field guide. Complements the existing Error Handling & Debugging manual. Benchmark and regression figures are worked examples from the guide, not general performance guarantees. Native GDScript line debugging and engine-level profiling use Godot tools.

Download PDFView PDF page

RESOURCES / GUI AND LIFETIME

In the workbench, focus the text box containing 0123456789. Place the caret 1 after the fourth character. Trigger an action that changes only this element’s border color. For your own button action, use Change GUI Element Property, select GUI instruments and element code, and change borderColor.

A mouse click on another focusable button can itself move focus. To isolate the 2 border update, trigger it from a timer or existing script while the caret stays in the box. Check text, caret and typing immediately afterward.

On Resources → GUI, choose Refresh. In a GUI with authoring enabled through 3 a binding, layout or navigation, compare screen generation, instance, widget count and counters before and after the update. A plain workbench without those features can show an empty object here.

Source table from Find a GUI that rebuilds too often, page 9
Resources viewA question it can answer
GUI / LifetimeDid one edit reconstruct the screen? After repeated room changes, do widgets and open spans settle?
Inventory & quests / SavesWhich player and item are active? Is a save busy or restoring? What was its last error?
Motion / CameraIs the moving actor or active camera the expected one? Use Toggle guide in these views when a visual aid is needed.
Property writesDid the property writer report a conflict or a rejected operation? Which targets remain pinned?

What the 0.86.4.5 regression actually checks#

After 1,000 alternating border writes the same text-box instance kept its text and caret at index 4. Across 100 room reloads and GUI hide/show cycles, our rerun sampled five registered widgets and zero open spans every ten cycles. Compare trends in your own scene, since its counts will differ.

Page 9 of 13Permalink
Go to page