trophy 1430
Apr 2021 103 posts
Update 25.10.29 : news/update-25-10-29
trophy 1786
Sep 2021 10 posts
first
trophy 1310
Sep 2021 94 posts
📦
trophy 400
Jul 2023 22 posts
🔥🔥🔥
trophy 0
Jul 2024 12 posts
I would suggest you be sure to have Stream-based APIs for Storage so it integrates well with other .NET APIs and third-party libraries .

You should also have async/coroutine/whatever methods for reading/writing storage, since it looks like the ones you shared are synchronous. If they are called on the game loop thread (I assume any game scripts you write run there by default) with large files, you could get frame drops. Adding async variants will make the calls more complex (you start calling on one frame but finish on another) but developers can use this to minimize stutter.
trophy 1290
Apr 2021 335 posts
OpenRead and OpenWrite give you a stream.

https://sbox.game/api/Sandbox.BaseFileSystem
trophy 415
Aug 2022 39 posts
Happy to see Dark Descent getting a shout out.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.