]> git.lizzy.rs Git - minetest.git/commit
Reduce the use of porting::getTimeMs() when rendering frames (#12679)
authorx2048 <codeforsmile@gmail.com>
Sat, 13 Aug 2022 20:33:26 +0000 (22:33 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Aug 2022 20:33:26 +0000 (22:33 +0200)
commitd1cbb4bd8a3fea147032fde63fdc4f5298f20217
treeeab23e9a249b59fd742c8fd4bd313f7d14f0af43
parent0e439b2fa3f0ba4f3352273519c32ebc9c3a680e
Reduce the use of porting::getTimeMs() when rendering frames (#12679)

* Avoid calling TimeTaker too frequently in renderMapXXX
* Calculate animation timer once per frame
* Remove code that breaks rendering frame at 2000ms

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: sfan5 <sfan5@live.de>
src/client/clientenvironment.cpp
src/client/clientenvironment.h
src/client/clientmap.cpp
src/client/game.cpp