Version 1.40 - Saving Efficiency Upgrade
I've made the saving system more efficient.
Previously, there were instances in the code where multiple saves could occur at once, such as when a right answer overlapped with a mastered word which overlapped with new words being added to the bank.
Further, every time the game did a regular save (upon getting a word correct), it would do a full save of everything.
It has been fine for now, but as I've reached Master 700 however, the strain of this excessive saving is becoming too much on poor Firestore.
Thus, I've implemented two major improvements to the saving mechanics:
1. There are now different types of saving: partial saves, full saves, and word bank expansion saves. Each only packages a certain set of data when it saves, rather than always saving all the data.
2. I've adjusted the logic of the code and added an internal flag that makes sure that if two saves are set to trigger in a row, only the latter one takes effect
The net result is a significant reduction in stuttering at higher mastery counts due to saving. Also I received feedback that the white particles for adding more words was a bit much, so I toned that down, which is another performance improvement.
I've also been in contact with the author of the Firebase plugin that is used by Godot (who is just so incredibly kind, I really have appreciated their assistance!) and they're looking to implement a way to send an update request for only a specific key in a dictionary, which would make it possible to maximize the efficiency of the saving. No ETA on that, but I think the current set of save improvements will do the trick for now.
As always, thanks for the support!
Files
Get Master 1000: Korean Words
Master 1000: Korean Words
Learn 1000 of the most common words in Korean!
More posts
- Version 1.52 - Glowier Mastery20 days ago
- Version 1.51 - Victory Lap23 days ago
- Version 1.50 - Stars Aligned!30 days ago
- Version 1.49 - Maximum Oversave44 days ago
- Version 1.44 - Saving ImprovementsJul 21, 2024
- Version 1.38 - Saving ReliabilityJul 18, 2024
- Version 1.35 - Quicker TopicsJul 16, 2024
- Version 1.32 - Making it CountJul 15, 2024
- Version 1.31 - The Adjective UpdateJul 13, 2024
Leave a comment
Log in with itch.io to leave a comment.