diff options
Diffstat (limited to 'src/Time.cpp')
| -rw-r--r-- | src/Time.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Time.cpp b/src/Time.cpp index 1953fed..a9608cc 100644 --- a/src/Time.cpp +++ b/src/Time.cpp @@ -12,7 +12,6 @@ void Time::start_frame() { void Time::end_frame() { auto frame_end = now(); m_delta = TO(Real, frame_end - m_current_frame_start) / 1000.0; - m_delta = std::clamp(m_delta, delta_min, delta_max); m_total_frames++; } @@ -26,6 +25,10 @@ Time::Tick Time::tick() const { } Real Time::delta() const { + return std::clamp(m_delta, delta_min, delta_max); +} + +Real Time::delta_raw() const { return m_delta; } |
