This patch turned into a bit of a beast!
My focus is still to get a demo out so I wanted to spend some time on optimisation.
This patch contains a heck of a lot, but in theory it will be probably not too noticeable for most.
Bug Fixes
- Signs now don't respawn if the player is over them, this stops the possibility of the player clipping signs.
Common Changes
- CPU usage at least on my system has been brought down from ~30% to ~7%. This is due to a combination of the following:
- The fps has been brought inline with simulation 30fps to match the target era. There will be no change to gameplay as the simulation was already at 30fps and so any frames over this would render the same scene anyway. This saves unnecessary renders where nothing would have changed.
- More caching added to cut down on file operations during a level. This will steady performance, especially for those not using ssd. Load times will also slightly be smaller but probably not too noticable.
- Main render loop reworked to give smoother rendering during loads, giving a more responsive experience and efficient use of cpu.
- Ground raycasts removed from enemies that only ever move on flat terrain, these are expensive so removing them where possible increases performance.
Level Changes
I have started work finalising the layout of the early levels.
After a lot of great playtesting I am really happy with the main structure of them.
This means, the unviewable surfaces have been removed!
While the levels were under large change I like to keep the surfaces on, but the early levels have changed little lately so I wanted to finally remove the unneccesary surfaces to ready them for the demo.
Removing the surfaces obviously increases performance as there is less to render.
Grave Situation
- Unviewable surfaces have been removed from view.
Finders Keepers
- Unviewable surfaces have been removed from view.
- Couldn't help it, I added a new secret!
Toxic Management
- Unviewable surfaces have been removed from view.
