branchrust_reboot/main/ui_overhead_optimscancel

54 Commits over 0 Days - Infinitycph!

1 Year Ago
Backported m_IsTextObjectScaleStatic field from newer TMP versions, that let us avoid the slow and useless (99% of the time) TMP_DoRebuild checking the scale of every registered texts every frame. Saves ~0.3ms every frame Default to true, we'll have to manually update all the texts getting their scale updated at runtime, don't think we have a lot of them
1 Year Ago
Better soft mask canvas caching
1 Year Ago
SoftMask uses graphic's canvas when possible instead of polling the nearest canvas
1 Year Ago
Toggle the canvas component of the menu UI when its not visible Causes a small spike when opening it, but saves us some UI overhead when its not visible Also causes a 40b alloc every frame because of SoftMask, need to look at it next