This update contains another important performance update that I seem to keep ending up working on despite it not being my aim!
This is still due to multiplayer because what is happening is that I now test/code by having 2 copies of Aiyana running on my PC at once, which is always going to be taxing but what its doing is exposing existing flaws and helping me spot bugs that would have previously been obscure to track down.
Tree Colliders
So this optimisation is around trees. What I spotted is that whilst near larger bamboo patches, some blocks don't spawn in a timely manner leaving you looking at invisible blocks until they eventually load.
This only applied to blocks that are also prefabs which is a bit hard to explain what this effects but its typically things that move such as firepits, benches and chests.
This is because bamboo trees spawn a prefab for their collisions, like all trees did, and since their forests are so dense it was resulting in a large queue of prefabs waiting to spawn. Normally this wouldn't build up but if you teleport with portals etc then it would start to become a problem as suddenly an entire forest needs to spawn all at once.
To get around this, I decided its time to remove the physics colliders in favour of my block/data based ones. Its a pretty significant change behind the scenes and means trees take far less time to initialise, plus overall physics calculations should be quicker.
The downside to this is that collisions with trees are less accurate but that is something I hope to improve over time to get the best of both worlds.
This has had the knock on effect that hitting a tree with a spell will no longer cause it to bounce around and will instead absorb the spell as other blocks do.
Data Upgrades
It turns out there was a serious flaw in how data was being upgraded to account for detailed blocks (the previous update) that was preventing worlds from loading properly.
A huge thanks to Vagos for pointing this one out!
This should now be fixed as part of this update.
Bug Fixes & Changes
Fixed an issue with cherry trees looking thicker at a distance than intended
Fixed tree selections getting slightly stuck and it looking like 2 trees are selected at the same time
Fixed insects appearing at the same time instead of spread out (E.G all butterflies appeared at once as it turned to night)
Improved animal animations by smoothing one of their blending formulas (these control the change from one animation to another)
Fixed an issue with loading backups if you have multiple worlds
Fixed trees still using old save data to save/load damage (only applied if you damaged a tree and walk far away)
Fixed palm tree root blocks not properly acting as roots
