Luffyyy / BeardLib-Editor

Editor for PAYDAY 2 using the power of BeardLib.
MIT License
37 stars 28 forks source link

UI Alignment causes a 54% increase in bootup time. #760

Closed connieprice closed 1 year ago

connieprice commented 1 year ago

Describe the bug

So I did a bit of profiling to identify possible sources of bootup to optimise and discovered that UI alignment increase my boot time from 7.275s to 11.27s.

I initially posted this as a BeardLib Issue PAYDAY-2-BeardLib#615, but it turns out this comes from some large UI item adding chains in BLE that is causing a lot of auto alignment when they should ideally be manually aligned once every item is added.

Steps to reproduce the issue

Timing the bootup time with auto-alignment turned off by default in MenuUI, and with it turned on by default.

Log file

No response

Minimal reproduction

No response