System: Set time constraints for GPU thread on MacOS

Fixes erratic frame times.
This commit is contained in:
Stenzek committed 2025-01-13 19:51:35 +10:00
1 parent d3854d095e
commit 0dc257abe4
3 files changed
+14 -5

No files matched your search

+1 -1
View File
@@ -296,7 +296,7 @@ bool Threading::ThreadHandle::IsCallingThread() const
#ifdef __APPLE__
bool Threading::ThreadHandle::SetTimeConstraints(bool enabled, u64 period, u64 typical_time, u64 maximum_time)
bool Threading::ThreadHandle::SetTimeConstraints(bool enabled, u64 period, u64 typical_time, u64 maximum_time) const
{
const mach_port_t mach_thread_id = pthread_mach_thread_np((pthread_t)m_native_handle);
if (!enabled)