Closed michaelsakharov closed 8 months ago
This is mostly solved now by making Transforms Optional. I have also reduced the overhead of Transforms quite a bit, it could be optimized further but its pretty good for now, if it becomes an issue in the future we can come back to this.
Yay
Right now a GameObject is pretty slow. Every time it moves/updates it regenerates and caches ALL its settings, and there are a lot, This results in
First, I would like to separate the Transform component and make it optional on game objects. This is already huge since almost 100% of a game object's overhead is the Transform, without it, it's just Tags, Layers, Hideflag, and name. Second, I want to switch things like 'Forward' out to be properties calculated on the spot, the end user can cache them for the frame if it's a performance bottleneck, This makes game objects super lightweight.