FS#58021 - [sdl2] Use CLOCK_GETTIME in cmake build

Attached to Project: Arch Linux
Opened by Jonathan Platzer (jonathanplatzer) - Thursday, 29 March 2018, 11:40 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 31 March 2018, 02:14 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: After the switch to cmake for building the package, the default configuration for using clock_gettime() instead of gettimeofday(), which was available before, is not carried over.

This has the effect that the frequency of the high resolution counter is degraded from one billion ticks per second to one million ticks per second.

Proposed fix: Activate the CLOCK_GETTIME option with -DCLOCK_GETTIME=ON when building the package with cmake in the PKGBUILD

Additional info:
* sdl2 2.0.8-2
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Saturday, 31 March 2018, 02:14 GMT
Reason for closing:  Implemented
Additional comments about closing:  sdl2 2.0.8-5
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 29 March 2018, 17:27 GMT
Check now.
Comment by Jonathan Platzer (jonathanplatzer) - Friday, 30 March 2018, 15:57 GMT
Just tested it, looks good so far.

Loading...