Hi!
The stutter fix is now fully implemented and I'm pretty confident that this will work on all systems and remove all the main lag spikes that are related to runtime shader compiling.
I have tested this solution on multiple different hardware and this "Loading shaders..." screen will require following loading times (roughly):
1. You open the build/level first time (no shaders cached) = 6-10 seconds
2. You open the build/level second time (shaders cached) = 1-4 seconds
I think the "extra" waiting time in this context is pretty reasonable considering that it should provide smooth gameplay after that initial shader caching.
This custom solution might need few upgrades down the road (when the AI comes for example) but I think this approach should scale pretty well even when the levels get more complicated and like mentioned most waiting happens only on the first time you open the build/level.
I will probably write more about this solution in the next port update post since the technical aspect of my approach might be interesting to some.
ps. If there are no surprises, I will showcase those new mosin bolt-action reload anims. tomorrow :)
- Antti (Developer)
Sam Hardwater
2023-10-28 20:35:28 +0000 UTCRottmeister
2023-10-27 13:23:29 +0000 UTC