Initialized fps limiter or wait for 300 years

pull/288/head
jackun 4 years ago
parent 42208d1145
commit 55430d7571
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -70,7 +70,7 @@ bool open = false;
string gpuString;
float offset_x, offset_y, hudSpacing;
int hudFirstRow, hudSecondRow;
struct fps_limit fps_limit_stats;
struct fps_limit fps_limit_stats {};
VkPhysicalDeviceDriverProperties driverProps = {};
int32_t deviceID;
struct benchmark_stats benchmark;

@ -524,6 +524,8 @@ parse_overlay_config(struct overlay_params *params,
using namespace std::chrono;
if (params->fps_limit >= 0)
fps_limit_stats.targetFrameTime = duration_cast<Clock::duration>(duration<double>(1) / params->fps_limit);
else
fps_limit_stats.targetFrameTime = {};
#ifdef HAVE_DBUS
if (params->enabled[OVERLAY_PARAM_ENABLED_media_player]) {

Loading…
Cancel
Save