Commit Graph

13 Commits

Author SHA1 Message Date
Andy Grundman
82ee2d6590 Improve support for high-resolution stats
* This patch adds a new microsecond-resolution function call, LiGetMicroseconds(), to complement
the existing LiGetMillis(). Many variables used by stats have been updated to work at this
higher resolution and now provide better results when displaying e.g. sub-millisecond frametime stats.
To try and avoid confusion, variables that now contain microseconds have been renamed with a suffix
of 'Us', and those ending in 'Ms' contain milliseconds. I originally experimented with nanoseconds but it
felt like overkill for our needs.

Public API in Limelight.h:
uint64_t LiGetMicroseconds(void);
uint64_t LiGetMillis(void);
const RTP_AUDIO_STATS* LiGetRTPAudioStats(void);  // provides access to RTP data for the overlay stats
const RTP_VIDEO_STATS* LiGetRTPVideoStats(void);

Note: Users of this library may need to make changes. If using LiGetMillis() to track the duration of
something that is shown to the user, consider switching to LiGetMicroseconds(). Remember to divide by
1000 at time of display to show in milliseconds.
2025-11-06 20:27:01 -06:00
ns6089
ab6e21ff5b Specify cmake max version to support cmake-4.0 (#112) 2025-07-14 20:49:47 -05:00
Cameron Gutman
7f665babf9 Enable GCC static analysis in CI 2023-09-15 22:41:37 -05:00
Mariotaku
f2e45695b2 use minimum required mbedcrypto 2022-01-12 17:47:04 -06:00
Mariotaku
5ed9a6508a Fixed build issue with MinGW (#64) 2021-09-16 01:30:47 -05:00
Cameron Gutman
9999156f26 Update ENet to avoid dependency on qwave.dll 2021-06-12 12:16:39 -05:00
Cameron Gutman
65047ac0e2 Switch to VS2019 build images for CI
Requires suppressing warning C5105 caused by Windows SDK headers
2021-04-29 17:59:38 -05:00
Cameron Gutman
b0737b882d Adjust MSVC warning level 2021-04-29 17:51:20 -05:00
Mariotaku Lee
179970a0d5 Behavior changes to CMakeLists.txt
- Allows static library compilation
 - Links to MBedTLS/OpenSSL based on build option
 - Limits visibility of some defines and headers
2021-04-29 17:40:47 -05:00
Cameron Gutman
221af82950 Add workaround for false GCC warning in CI 2021-04-18 00:15:27 -05:00
Cameron Gutman
23a86b0455 Build with OpenSSL and MbedTLS for CI 2021-04-17 23:56:15 -05:00
Cameron Gutman
6dd3f9e7bc Treat GCC/Clang warnings as errors 2020-12-05 23:46:10 -06:00
Cameron Gutman
ac6630ef59 Add AppVeyor CI builds 2020-12-05 20:12:14 -06:00