mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Revert "atomic.cpp: fixup for WaitOnAddress path"
This reverts commit 3b8bce1bed
.
This commit is contained in:
parent
3b8bce1bed
commit
306593a0c5
3 changed files with 4 additions and 4 deletions
|
@ -334,7 +334,7 @@ public:
|
||||||
#else
|
#else
|
||||||
// Host scheduler quantum for windows (worst case)
|
// Host scheduler quantum for windows (worst case)
|
||||||
// NOTE: On ps3 this function has very high accuracy
|
// NOTE: On ps3 this function has very high accuracy
|
||||||
constexpr u64 host_min_quantum = 1000;
|
constexpr u64 host_min_quantum = 500;
|
||||||
#endif
|
#endif
|
||||||
// TODO: Tune for other non windows operating sytems
|
// TODO: Tune for other non windows operating sytems
|
||||||
|
|
||||||
|
|
|
@ -501,7 +501,7 @@ namespace rsx
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
constexpr u32 host_min_quantum = 50;
|
constexpr u32 host_min_quantum = 50;
|
||||||
#else
|
#else
|
||||||
constexpr u32 host_min_quantum = 1000;
|
constexpr u32 host_min_quantum = 500;
|
||||||
#endif
|
#endif
|
||||||
u64 start_time = get_system_time();
|
u64 start_time = get_system_time();
|
||||||
|
|
||||||
|
@ -2543,7 +2543,7 @@ namespace rsx
|
||||||
#else
|
#else
|
||||||
// Host scheduler quantum for windows (worst case)
|
// Host scheduler quantum for windows (worst case)
|
||||||
// NOTE: On ps3 this function has very high accuracy
|
// NOTE: On ps3 this function has very high accuracy
|
||||||
constexpr u64 host_min_quantum = 1000;
|
constexpr u64 host_min_quantum = 500;
|
||||||
#endif
|
#endif
|
||||||
if (remaining >= host_min_quantum)
|
if (remaining >= host_min_quantum)
|
||||||
{
|
{
|
||||||
|
|
|
@ -574,7 +574,7 @@ void atomic_storage_futex::wait(const void* data, std::size_t size, u64 old_valu
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const DWORD time_ms = timeout + 1 ? (timeout > (UINT32_MAX - 1) * 1000'000ull ? (UINT32_MAX - 1) : timeout / 1000'000) : INFINITE;
|
const DWORD time_ms = timeout + 1 ? INFINITE : (timeout > (UINT32_MAX - 1) * 1000'000 ? (UINT32_MAX - 1) : timeout / 1000'000);
|
||||||
|
|
||||||
sema_handle _cmp{};
|
sema_handle _cmp{};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue