jpark37
e69f051736
libobs/util: Improve os_sleepto_ns on Windows
...
Avoid nanosecond abstraction to reduce math operations.
Replace Sleep(0) with YieldProcessor(). We want the thread to remain
scheduled, the current CPU core to do less work, and the hyperthread
sibling to perform better.
Hacky profiling showed maybe 10-25 µs skid reduction per function call.
I think power/performance gains would be hard to measure, so I haven't
tried, but it would be shocking if they got worse.
2021-10-10 19:13:19 -07:00
..
2019-06-23 23:49:10 -07:00
2020-03-13 07:48:47 -07:00
2021-01-02 04:07:55 -08:00
2021-09-15 02:52:12 -07:00
2019-06-23 23:49:10 -07:00
2021-10-01 12:59:35 +09:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2020-11-01 22:28:49 -08:00
2020-11-01 22:28:49 -08:00
2021-03-31 06:07:11 -07:00
2019-06-23 23:49:10 -07:00
2020-01-20 21:44:50 -08:00
2019-06-23 23:49:10 -07:00
2021-07-31 15:29:26 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2021-03-04 19:29:33 +01:00
2021-08-23 22:57:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2015-10-04 21:16:27 -07:00
2021-10-01 13:00:00 +09:00
2020-07-11 16:15:38 -07:00
2021-03-31 06:07:11 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2020-02-24 12:29:54 +11:00
2020-10-14 18:42:22 -07:00
2019-06-23 23:49:10 -07:00
2021-02-28 19:00:43 -08:00
2021-02-25 12:32:44 -08:00
2021-09-23 07:35:47 -07:00
2021-08-09 11:42:34 -07:00
2021-10-10 19:13:19 -07:00
2021-05-08 14:12:54 -07:00
2021-08-27 08:12:53 -07:00
2021-08-23 22:57:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2021-10-10 19:12:45 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2020-05-09 14:21:35 -07:00
2021-02-03 08:51:31 -08:00
2021-08-30 22:33:17 -07:00
2021-03-07 21:11:32 -08:00
2021-08-23 22:09:08 -07:00
2020-08-08 10:41:24 +02:00
2019-06-23 23:49:10 -07:00
2021-09-29 02:22:01 -07:00
2018-09-07 17:28:15 -07:00
2020-03-19 16:18:51 -07:00