Thanks man! That seems to work.
And, by the way, there was one other thing int the code which was causing the problem.
I was supposed to use std::chrono::duration<float> but I was using std::chrono::steady_clock::duration.
I did not expect somebody to help this fast. Thanks again man!
Search found 2 matches
- January 15th, 2019, 5:42 am
- Forum: Everything
- Topic: Problem on Beginner-Tutorial17 (Chrono)
- Replies: 4
- Views: 2204
- January 14th, 2019, 7:30 pm
- Forum: Everything
- Topic: Problem on Beginner-Tutorial17 (Chrono)
- Replies: 4
- Views: 2204
Problem on Beginner-Tutorial17 (Chrono)
Could somebody please help me with a problem regarding tutorial 17 in beginner c++ series. I attempted to make a Time struct and made a float variable to store the deltaTime. I also made a function to update the deltaTime which runs inside the UpdateModel in Game.cpp . However, the deltaTime seems t...