Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Set system time to suspend time before resume #238

Open
asido opened this issue Jan 26, 2025 · 1 comment
Open

[Feature Request] Set system time to suspend time before resume #238

asido opened this issue Jan 26, 2025 · 1 comment

Comments

@asido
Copy link

asido commented Jan 26, 2025

Some video games are time-sensitive, making them jump forward by the elapsed time after resuming. I noticed that with cinematics, dialogues and subtitles.

I wonder if it would be practical and safe to have an optional knob to set the system clock to the suspend timestamp. That way video games wouldn't realize there was a jump in time. I imagine it might cause a lot of chaos with the other software running on the machine if the time keeps jumping backwards, but I'd be willing to try.

@Merrit
Copy link
Owner

Merrit commented Jan 27, 2025

Hey, thanks for the suggestion.

Unfortunately I don't think this would be safe to set the system time directly like this.

It might be possible if you launched your game wrapped with libfaketime (on Linux). If using libfaketime does sound of interest, I would consider adding a feature to Nyrna to run a command or script whenever it does a suspend/resume. That would allow you to update the fake time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants