4 ms·
Do you have more information about your game and how you are using LiteDB?
by jermaustin1 4y ago
Do you have more information about your game and how you are using LiteDB?
- jbluepolarbear 4y agoI can’t talk about much about the game as it’s in development and unannounced, but it’s a 3d adventure game. We use LiteDB to hold all game state: objects on the ground, button/switch states, ai variables, inventory, etc. LiteDB allows using C# classes directly with the BSON mapper, allowing easy interoperability between the database and using the data in game. LiteDB allows using MemoryStreams which are convenient for loading and saving from a binary storage like a cloud service or a file. It’s fast at querying, but we’ve had issue with upsert performance so we perform all upserts at once in a separate thread to not impact the main game thread. Over all has worked well for the project and has had minimal issues over a year plus of development.