Now that the Survival Fest is out of the way I'm shifting my focus back onto progress for multiplayer in the form of a performance update that will be vital. More info below.
Biomes & Points of Interest (POI)
I'll admit that I rushed the last update in order for it to be ready in time for the survival fest and some bugs have cropped up that I would like to address.
I've fixed a pretty serious flaw in how the biome scale was being saved and loaded which resulted in being able to see through the world after reloading. Another similar one, but for different reasons, was being able to see through the world around volcanoes if they positioned near a region edge.
POI also don't always sit nicely within their mini biome and could be improved but I've not tried to fix this yet since to do so means making changes to worlds again, which is something I try to do as little as possible.
So currently the situation is that I'm aware of some things that can be improved but I've not started to properly investigate yet in case it results in needing to regenerate worlds, which is likely. I'd also like to gather a bit more feedback before trying to lump as much changes as possible into one update.
E.G what else would you like to see? What doesn't look great and needs rethought?
Performance & Memory
Ok so how does performance and memory relate to multiplayer.
I recently sat down and tried to calculate how many players would be a sensible max to recommend. I quickly established that the limiting factor for this would be hosts available memory/RAM.
This is because each player will need the host to keep the chunks relative to that player loaded in memory regardless of the distance between them and if they are in different worlds in order to prevent something called tethering.
Tethering is a technique to simplify the development of complex multiplayer games by forcing players to be close to the host and is something I'm working hard to avoid entirely because its a terrible experience as a player.
So with this in mind I ran some rough calculations for how much data would be needed per player and I wasn't happy with the very rough results. If I wanted more players, I needed to reduce memory per chunk and thus it became the goal of this update.
Detailed Block Data
This is going to be a more technical section, the TLDR is that memory usage has dropped significantly, loading times will be a bit quicker and world file sizes have been reduced a tiny amount as well (I had hoped it would be a more significant reduction but ah well).
Worlds should update automatically as you load them with no need for you to do anything.
What I've done is rebuild how chunks store blocks entirely, it was a huge amount of work and involved rebuilding huge sections of Aiyana but thankfully it was fairly straight forward and took less time than I expected.
What I've done is changed a bunch of detailed data per block to only be generated as needed. For example grass needs information about its scale and rotation, stone can never be scaled or rotated so it doesn't need this data.
The real trick here is how I access this new data in order to maintain performance since the old systems are very slightly better in that regard.
As a result, running Aiyana in a world with a chunk draw distance of 32 now needs 5.6GB of memory whereas before this update it needed 7.4GB. This should have some nice knock on effects to the world loading times since less time needs to be spent initialising memory for chunks.
Bug Fixes & Changes
Ice blocks have been added in all the usual shapes. Creative mode only for now though
Updated the green crystals map colour to be a bit brighter
Fixed a sort of memory leak caused by loading dungeon data
Fixed an issue with occlusion culling that would sometimes let you see through the world
Fixed aggressive animals not wandering until you place a protection totem
Fixed enemies not respawning in dungeons if you didn't edit any of the blocks for their chunk
Improved the selection effect for the decorative sword and shield
Fixed the decorative sword and shield always looking dark
Fixed the statue types in dungeons changing randomly if you didn't edit any blocks nearby
Fixed animals being level 1 in the area near where you first spawn into a loaded world
Fixed sometimes seeing a campfire icon on the map legend in areas you have yet to visit. This will mean existing icons are missing until you revisit an area, except for sign posts & portals
Fixed animals sometimes flickering briefly dark then bright. Especially a pig in one of the menu scenes
Added leaderboards for groups (In prep for multiplayer)
Fixed round stools looking like square ones once damaged
Added buttons to the settings screen so you can easily set FPS to 30,60,90 or 120 fps
Added a slider that lets you control the scale of damage text (seen when hitting blocks and animals)
