mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #2633] [CLOSED] Kernel: Changes to scekernelUsleep to improve precision #2876
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#2876
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/2633
Author: @diegolix29
Created: 3/9/2025
Status: ❌ Closed
Base:
main← Head:Kernel-scekernelUsleep📝 Commits (1)
d1604bcKernel: Changes to scekernelUsleep to improve precision.📊 Changes
1 file changed (+41 additions, -41 deletions)
View changed files
📝
src/core/libraries/kernel/time.cpp(+41 -41)📄 Description
Modifies sceKernelUsleep to improve precision by using CLOCK_MONOTONIC_RAW in certain cases.
Utilizing GetCurrentProcess instead of GetCurrentThread may also help reduce crashes in games that rely on precise memory timings by improving thread synchronization and reducing timing drift
Changes the sleep logic to a while loop that updates req with rem if nanosleep is interrupted this helps for a better synchronization with real PS4 behavior, and slighly smoother control of time sensitive operations
Changins the generic POXIS implementation to a more orbis specific behaviour with tp
Using time pointer in this cases makes it clear that the argument is a pointer to a time related structure helping avoid confusion in function calls
This integrate my pr that helped Deathlight get ingame with the last changes from the kernel gettime pr just merged
Makes
Deadlight Director's Cut | CUSA04434 | 1.00 Playable (according to reports with image proof)
Mages of mystralia : works again but needs a few starts. (according to reports)
Mad max: is back ingame again. (acording to reports)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.