Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 651078 Details for
Bug 734164
games-strategy/0ad-0.0.23b_alpha fails to run on AMD Ryzen CPUs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make the game even launch on Ryzen CPUs.
D2726.diff (text/plain), 1.12 KB, created by
asdfg
on 2020-07-28 03:10:10 UTC
(
hide
)
Description:
Patch to make the game even launch on Ryzen CPUs.
Filename:
MIME Type:
Creator:
asdfg
Created:
2020-07-28 03:10:10 UTC
Size:
1.12 KB
patch
obsolete
>Index: source/lib/timer.cpp >=================================================================== >--- 0ad-0.0.23b_alpha/source/lib/timer.cpp >+++ 0ad-0.0.23b_alpha/source/lib/timer.cpp >@@ -77,7 +77,7 @@ > #if OS_WIN > // whrt_Time starts at zero, nothing needs to be done. > #elif HAVE_CLOCK_GETTIME >- (void)clock_gettime(CLOCK_REALTIME, &start); >+ (void)clock_gettime(CLOCK_MONOTONIC, &start); > #elif HAVE_GETTIMEOFDAY > gettimeofday(&start, 0); > #endif >@@ -104,7 +104,7 @@ > #elif HAVE_CLOCK_GETTIME > ENSURE(start.tv_sec || start.tv_nsec); // must have called timer_LatchStartTime first > struct timespec cur; >- (void)clock_gettime(CLOCK_REALTIME, &cur); >+ (void)clock_gettime(CLOCK_MONOTONIC, &cur); > t = (cur.tv_sec - start.tv_sec) + (cur.tv_nsec - start.tv_nsec)*1e-9; > #elif HAVE_GETTIMEOFDAY > ENSURE(start.tv_sec || start.tv_usec); // must have called timer_LatchStartTime first >@@ -129,7 +129,7 @@ > resolution = whrt_Resolution(); > #elif HAVE_CLOCK_GETTIME > struct timespec ts; >- if(clock_getres(CLOCK_REALTIME, &ts) == 0) >+ if(clock_getres(CLOCK_MONOTONIC, &ts) == 0) > resolution = ts.tv_nsec * 1e-9; > #else > const double t0 = timer_Time();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 734164
: 651078 |
651080