Hey, so we are writing our own UI system since UGUI is pretty slow for us on mobile. The hardest parts are done, but the “hardest” part seems to be what should be the easiest.
I am not sure how to quickly copy the localToWorldMatrix of a lot of transforms into an array. After profiling, it seems there is a lot of Unity overhead when trying to do this. If I were writing this in in my own application I am pretty sure I could get this operation down to around 0.05 ms or less, but with Unity we are sitting around 0.2 ms. Please if you are going to comment with “0.2 ms” is already fast" don’t. We are running in a highly time critical environment (mobile) and we need to shave off time anywhere we can.
Right now the only option I can think of is to write a a custom Transform kind of system just for our UI system, but this seems like overkill.
Please, I would love any kind of help. I really need to get this figured out ASAP.