6 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
ReenigneArcher
f2f85efa33 ci(workflows): move to github workflows 2025-03-26 23:05:26 -05:00
Michelle Bergeron
91f0351671 Ignore some Visual Studio-generated files 2014-10-25 21:39:17 -07:00
Cameron Gutman
01491581bd Ignore xcuserdata directories 2014-10-23 13:25:44 -04:00
Diego Waxemberg
a0b54e9d42 Created Xcode project for compiling universal static lib for iOS 2014-08-31 13:07:44 -04:00
Michelle Bergeron
36e8af4fd9 Add gitignore 2014-07-31 03:26:58 -04:00