branchrust_reboot/main/ui_overhead_optimscancel

54 Commits over 0 Days - Infinitycph!

11 Months 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
11 Months Ago
Better soft mask canvas caching
11 Months Ago
SoftMask uses graphic's canvas when possible instead of polling the nearest canvas
11 Months 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