Skip to content
Snippets Groups Projects
Verified Commit 20ea9a36 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#63] Fixed time again and again

parent edd2d9ec
No related branches found
No related tags found
1 merge request!51Resolve "Laden mehrer Meshes mit Materials und Textures"
......@@ -235,7 +235,8 @@ int main(int argc, const char** argv) {
}
auto end = std::chrono::system_clock::now();
auto deltatime = end - start;
auto deltatime = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
start = end;
cameraManager.update(0.000001 * static_cast<double>(deltatime.count()));
glm::mat4 vp = cameraManager.getActiveCamera().getMVP();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment