]> git.lizzy.rs Git - minetest.git/commit
Reduce server CPU consumed by occlusion culling. (#13260)
authorlhofhansl <larsh@apache.org>
Mon, 6 Mar 2023 05:33:41 +0000 (21:33 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 05:33:41 +0000 (21:33 -0800)
commit1f0d042377ed506ad460067495e5911b2fc2aacc
treebeaf0785d4d0d2dc9f043d01d0a80d588f10fbfc
parent9ef3c8ce388011f4f57adc9a7eb0326376aec750
Reduce server CPU consumed by occlusion culling. (#13260)

Cache blocks already occluded at a specific distance. The RemoteClient typically visits the same distance multiple time - especially at larger distances, so this saves significant CPU from recalculating the occlusion state of blocks.
src/clientiface.cpp
src/clientiface.h