1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Instrument touchMapBlocks and block loading/deserialization. (#13314)

This commit is contained in:
lhofhansl 2023-06-19 16:59:08 -07:00 committed by GitHub
parent f1feeb319c
commit 8f25f487fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -623,6 +623,8 @@ void ClientMap::touchMapBlocks()
if (m_control.range_all || m_loops_occlusion_culler)
return;
ScopeProfiler sp(g_profiler, "CM::touchMapBlocks()", SPT_AVG);
v3s16 cam_pos_nodes = floatToInt(m_camera_position, BS);
v3s16 p_blocks_min;