修复编译器不同导致的编译错误

This commit is contained in:
Nanako 2024-11-04 19:29:53 +08:00
parent 49f0e7ce47
commit be2486563f

View File

@ -9,7 +9,7 @@
#endif
std::chrono::duration<double> delta_time = {};
std::chrono::time_point<std::chrono::system_clock> last_time = {};
decltype(std::chrono::high_resolution_clock::now()) last_time = {};
void renderer::tick() {
}
@ -54,7 +54,7 @@ void aorii::destroy_renderer() {
}
void aorii::update() {
const auto current_time = std::chrono::high_resolution_clock::now();
const auto& current_time = std::chrono::high_resolution_clock::now();
delta_time = current_time - last_time;
last_time = current_time;