2 ms·
>I wince every time I'm playing a video game and it has that "saving - don't turn off your console!" animation. That seems harsh. Even a transactional FS would
by dTal 6y ago
>I wince every time I'm playing a video game and it has that "saving - don't turn off your console!" animation.
That seems harsh. Even a transactional FS would have this message. Saving takes time, and the best case scenario for shutting off the machine before it's complete is still data loss. What alternative interface do you propose?
- josephg 6y agoCurrently the worst case scenario is that power loss while overwriting the save file leaves the file corrupted and you have to start the game from scratch. How many games do the rename trick correctly when they save? I bet it’s less than half. The behaviour should be that if power goes out while saving, the game either updated the save file or it didn’t. Saving should be atomic. That’s the best we can do, and what the user should expect if power goes out before it’s finished saving the game.