Posted June 20, 2024 by kindeyegames
This is still an experimental change.
Only supports webgl2 and non-worker animation (no need to use worker animation for static geometry.)
Optimizations are done for static geometry, such that data transfer is minimized between CPU and GPU, this lowers the performance requirements for both the CPU and a large performance boost.
Currently, with one object and static geometry, all the instances of the object set to static geometry will render the same model.
Instance models will likely not work with this version of static geometry (yet, I will look into this.)
Please try it out and benchmark and report results.
To see this in action tryout this example, you can add models, delete models, turn off an on static geometry and change FS quality.
https://kindeyegames.com/stat07 (may take a while to load large models, plz be patient).
Since this is experimental, there may be issues with mixing other C3 objects with 3DObject and static geometry. If you see an issue, please comment and send a test project which reveals the issue. I use https://sendgb.com to share files.