536
you are viewing a single comment's thread
view the rest of the comments
[-] MonkderVierte@lemmy.ml 5 points 2 days ago

Waaay too much trouble to compare the time-of-last-save with minimum-time-to-ask-save. 🙄

[-] JackbyDev@programming.dev 4 points 2 days ago

Or even just "Has the menu been closed since it was saved?"

[-] Lifter@discuss.tchncs.de 1 points 1 day ago

That's harder to implement. Suddenly you need to store that extra state somewhere and don't mess it up. The last save should already have a timestamp and is immutable. A lot less likely to get bugs that way.

[-] JackbyDev@programming.dev 1 points 1 day ago

Literally a single boolean lol

[-] Lifter@discuss.tchncs.de 1 points 8 hours ago

It's the "don't mess it up" part that is harder.

[-] JustAnotherKay@lemmy.world 1 points 1 day ago

Do you not need to store that state to pause the game anyway? How else would you end the menu loop?

[-] Lifter@discuss.tchncs.de 1 points 8 hours ago

The state "the game is paused" is different from " the game is paused and saved". Sure that could be another key in some atate machine but like above: it's the "not mess it up" part that is harder.

[-] JustAnotherKay@lemmy.world 1 points 5 hours ago

I feel like I've seen a "Time since last save:" line on enough games to find it hard to believe that "paused and saved" is difficult to check for lol

These are variables that already exist in most games, it just needs one more line of code to check them

this post was submitted on 07 Feb 2025
536 points (100.0% liked)

Gaming

20575 readers
343 users here now

Sub for any gaming related content!

Rules:

founded 5 years ago
MODERATORS