by stripe · 14y ago · 0 comments
In certain games, the saving is done asynchronously. This means you have to collect (serialize) all the save game data in very short amount of time in a buffer - a millisecond might be a hitch for an 60fps shooter. Then write the data asynchronously.
So there is not much an API could help - either write the data in second thread, or use async function to write it. (open/close the file is also good to be async, or on a second thread if possible).