[PR #1344] [MERGED] Use GetSystemTimePreciseAsFileTime to fix fps timing issues #2057

Closed
opened 2026-02-27 21:15:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1344
Author: @adjonesey
Created: 10/11/2024
Status: Merged
Merged: 10/11/2024
Merged by: @georgemoralis

Base: mainHead: adjo/better-60fps-timing


📝 Commits (1)

  • 1070d76 Use GetSystemTimePreciseAsFileTime to fix fps timing issues

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/core/libraries/kernel/time_management.cpp (+1 -1)

📄 Description

Improves frametime consistency at 60Hz/60fps on Windows platform.

I noticed the framerate jumping between 59fps and 60fps regularly, causing visible hitching. Some games seem to be affected worse than others.

Here's a before and after of frametime graph:

image

Performance on my system with this change seems about the same - possibly even a couple of % faster (the CPU spends a little less time inside sceKernelGettimeofday)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1344 **Author:** [@adjonesey](https://github.com/adjonesey) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/11/2024 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `adjo/better-60fps-timing` --- ### 📝 Commits (1) - [`1070d76`](https://github.com/shadps4-emu/shadPS4/commit/1070d76578e310076bb643e4d92f8fbcc7b75121) Use GetSystemTimePreciseAsFileTime to fix fps timing issues ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/time_management.cpp` (+1 -1) </details> ### 📄 Description Improves frametime consistency at 60Hz/60fps on Windows platform. I noticed the framerate jumping between 59fps and 60fps regularly, causing visible hitching. Some games seem to be affected worse than others. Here's a before and after of frametime graph: ![image](https://github.com/user-attachments/assets/9dedacfc-6902-4de4-8834-6502858664ec) Performance on my system with this change seems about the same - possibly even a couple of % faster (the CPU spends a little less time inside sceKernelGettimeofday) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2057
No description provided.