aboutsummaryrefslogtreecommitdiff
path: root/src/network/clientopcodes.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2020-04-16 08:25:48 +0200
committerGitHub <noreply@github.com>2020-04-16 08:25:48 +0200
commite8ac5a31cf12afcfddf8e3ed31e8038930edb06f (patch)
tree5bdc776c5bbe190e32e42899b455e6d16179e3b5 /src/network/clientopcodes.cpp
parent62ae7adab2bebde04864c12543caefbffab24963 (diff)
downloadminetest-e8ac5a31cf12afcfddf8e3ed31e8038930edb06f.tar.gz
minetest-e8ac5a31cf12afcfddf8e3ed31e8038930edb06f.tar.bz2
minetest-e8ac5a31cf12afcfddf8e3ed31e8038930edb06f.zip
Optimize get_objects_inside_radius calls (#9671)
* Optimize getObjectsInsideRadius calls our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba. This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
Diffstat (limited to 'src/network/clientopcodes.cpp')
0 files changed, 0 insertions, 0 deletions