修复编译器不同导致的编译错误
This commit is contained in:
parent
49f0e7ce47
commit
be2486563f
@ -9,7 +9,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::chrono::duration<double> delta_time = {};
|
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() {
|
void renderer::tick() {
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ void aorii::destroy_renderer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void aorii::update() {
|
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;
|
delta_time = current_time - last_time;
|
||||||
last_time = current_time;
|
last_time = current_time;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user