mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 08:46:03 +03:00
[PR #4054] [CLOSED] Timer touchups #3901
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3901
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/4054
Author: @StevenMiller123
Created: 2/19/2026
Status: ❌ Closed
Base:
main← Head:timer-touchups📝 Commits (10+)
9683237Fix timer dataec7528bFix vblank event data527ab8aPrevent duplicate eventsc8cb7a7Remove unique small timer logic.da14d33Remove assert8025b28Remove fflags increment97e6ab5Clang8ce3b03Remove spinlock offset6aa9990Merge branch 'shadps4-emu:main' into timer-touchupscd3c846Update equeue.cpp📊 Changes
3 files changed (+44 additions, -135 deletions)
View changed files
📝
src/core/libraries/kernel/equeue.cpp(+28 -110)📝
src/core/libraries/kernel/equeue.h(+5 -17)📝
src/core/libraries/videoout/driver.cpp(+11 -8)📄 Description
This PR fixes several inaccuracies with our event queues implementation.
These changes fix some random hanging and debugger crashes seen in titles abusing high-res timers.
Regarding my removal of small timer-specific logic: my hardware tests (posted at https://github.com/ps4emulation/integration_tests/pull/16) suggest that small timers are around the same accuracy as normal timers, somewhere between 10 and 20ms is as low as you can go before real hardware's timing inaccuracies become apparent. Even our timer event logic is fast enough to be more accurate than real hardware.
I'm opening this as a draft, I'd like to see some tests before this gets merged, primarily to make sure removing the special high accuracy small timer logic doesn't break titles using those.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.