mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Scale culler steps proportionally to the mesh sizes (#13250)
This commit is contained in:
parent
1de8a1e962
commit
705195b43e
8 changed files with 129 additions and 63 deletions
|
@ -574,6 +574,7 @@ void Client::step(float dtime)
|
|||
// Delete the old mesh
|
||||
delete block->mesh;
|
||||
block->mesh = nullptr;
|
||||
block->solid_sides = r.solid_sides;
|
||||
|
||||
if (r.mesh) {
|
||||
minimap_mapblocks = r.mesh->moveMinimapMapblocks();
|
||||
|
@ -598,12 +599,6 @@ void Client::step(float dtime)
|
|||
delete r.mesh;
|
||||
}
|
||||
|
||||
for (auto p : r.solid_sides) {
|
||||
auto block = m_env.getMap().getBlockNoCreateNoEx(p.first);
|
||||
if (block)
|
||||
block->solid_sides = p.second;
|
||||
}
|
||||
|
||||
if (m_minimap && do_mapper_update) {
|
||||
v3s16 ofs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue