summaryrefslogtreecommitdiff
path: root/src/core/perf_stats.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-26 18:51:00 -0700
committerGitHub <noreply@github.com>2021-07-26 18:51:00 -0700
commitd6c799494c6235bc0796386bb31cae9fbe26f737 (patch)
treeba4d1992e822cb8c0b2744e838ea503df97dde1f /src/core/perf_stats.h
parent7511f65e312ab9916967a1234e471ef11b818787 (diff)
parentc80ae87b4ec29903f8c65641bd7e3c6460484801 (diff)
Merge pull request #6696 from ameerj/speed-limit-rename
general: Rename "Frame Limit" references to "Speed Limit"
Diffstat (limited to 'src/core/perf_stats.h')
-rw-r--r--src/core/perf_stats.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/perf_stats.h b/src/core/perf_stats.h
index e5d603717..a2541906f 100644
--- a/src/core/perf_stats.h
+++ b/src/core/perf_stats.h
@@ -85,11 +85,11 @@ private:
double previous_fps = 0;
};
-class FrameLimiter {
+class SpeedLimiter {
public:
using Clock = std::chrono::high_resolution_clock;
- void DoFrameLimiting(std::chrono::microseconds current_system_time_us);
+ void DoSpeedLimiting(std::chrono::microseconds current_system_time_us);
private:
/// Emulated system time (in microseconds) at the last limiter invocation
@@ -98,7 +98,7 @@ private:
Clock::time_point previous_walltime = Clock::now();
/// Accumulated difference between walltime and emulated time
- std::chrono::microseconds frame_limiting_delta_err{0};
+ std::chrono::microseconds speed_limiting_delta_err{0};
};
} // namespace Core