obs-studio/libobs/util
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
..
apple clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
curl Make cert revocation check fails non-fatal on Win 2020-03-13 07:48:47 -07:00
simde libobs: Update to SIMDe 0.7.1 2021-01-02 04:07:55 -08:00
windows libobs: Support move for mismatched ComPtr 2021-09-15 02:52:12 -07:00
AlignedNew.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
array-serializer.c libobs/util: Add a cast for da_push_back_array argument 2021-10-01 12:59:35 +09:00
array-serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
base.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
base.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
bitstream.c decklink: Add ability to ingest/embed cea 708 captions 2020-11-01 22:28:49 -08:00
bitstream.h decklink: Add ability to ingest/embed cea 708 captions 2020-11-01 22:28:49 -08:00
bmem.c libobs/util: Skip pointless free for null 2021-03-31 06:07:11 -07:00
bmem.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
c99defs.h libobs: Rename DEPRECATED to OBS_DEPRECATED 2020-01-20 21:44:50 -08:00
cf-lexer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
cf-lexer.h libobs: Fix da_push_back taking a wrong type of item 2021-07-31 15:29:26 -07:00
cf-parser.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
cf-parser.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
circlebuf.h libobs: Minor fixes / code cleanups 2021-03-04 19:29:33 +01:00
config-file.c libobs/util: Fix pthread mutex leaks 2021-08-23 22:57:10 -07:00
config-file.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
crc32.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
crc32.h libobs/util: Add function to calculate CRC32 2015-10-04 21:16:27 -07:00
darray.h libobs/util: Add type test in darray macros for GCC 2021-10-01 13:00:00 +09:00
dstr.c libobs/util: Use is_padding() for wcsdepad as well 2020-07-11 16:15:38 -07:00
dstr.h libobs/util: Fix warnings for about null usages 2021-03-31 06:07:11 -07:00
dstr.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
file-serializer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
file-serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
lexer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
lexer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
pipe-posix.c libobs/util: Retry pipe writes to avoid short-write failures 2020-02-24 12:29:54 +11:00
pipe-windows.c obs-ffmpeg: Add ability to debug ffmpeg-mux subprocess 2020-10-14 18:42:22 -07:00
pipe.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
platform-cocoa.m libobs: use clock_gettime_nsec_np() for macOS 2021-02-28 19:00:43 -08:00
platform-nix-dbus.c libobs/util: Split bus name from interface 2021-02-25 12:32:44 -08:00
platform-nix-portal.c libobs: Make portal inhibitor asynchronous 2021-09-23 07:35:47 -07:00
platform-nix.c libobs/util: Fix reading memory usage on Linux 2021-08-09 11:42:34 -07:00
platform-windows.c libobs/util: Improve os_sleepto_ns on Windows 2021-10-10 19:13:19 -07:00
platform.c libobs: Mark unused parameters 2021-05-08 14:12:54 -07:00
platform.h libobs/util: Remove old ifdefs 2021-08-27 08:12:53 -07:00
profiler.c libobs/util: Fix pthread mutex leaks 2021-08-23 22:57:10 -07:00
profiler.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
profiler.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
sse-intrin.h libobs/util: Simplify emmintrin.h wrapper macro 2021-10-10 19:12:45 -07:00
text-lookup.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
text-lookup.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
threading-posix.c libobs/util: Fix POSIX event bugs 2020-05-09 14:21:35 -07:00
threading-posix.h libobs/util: Various atomic improvements 2021-02-03 08:51:31 -08:00
threading-windows.c libobs/util: Improve SetThreadDescription usage 2021-08-30 22:33:17 -07:00
threading-windows.h libobs/util: Compiler barriers for ARM64 atomics 2021-03-07 21:11:32 -08:00
threading.h libobs/util: pthread_mutex_init_recursive helper 2021-08-23 22:09:08 -07:00
utf8.c libobs: Fix undefined behavior 2020-08-08 10:41:24 +02:00
utf8.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
util.hpp libobs: Add move assignment operator for BPtr 2020-03-19 16:18:51 -07:00
util_uint64.h libobs: Simplify util_mul_div64 for x64 on Windows 2021-09-29 02:22:01 -07:00
util_uint128.h libobs/util: Fix undefined behavior and optimize util_mul64_64 2018-09-07 17:28:15 -07:00