ChangedWrites¶
from acron.ui import ChangedWrites
- class ChangedWrites¶
Bases:
objectApply a value only when it changed since the last apply.
RmlUi re-lays-out on every property set, so a HUD that assigns the same string sixty times a second pays for sixty layouts. Most of what is on screen is unchanged from one frame to the next; this is where that fact is turned into not doing the work.
Inheritance diagram
digraph inheritance97b2b4dd32 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ChangedWrites" [URL="acron.ui.ChangedWrites.html#acron.ui.ChangedWrites",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Apply a value only when it changed since the last apply."]; }