minetest/src/script/lua_api
Loïc Blot e8ac5a31cf
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
2020-04-16 08:25:48 +02:00
..
CMakeLists.txt Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 (#8288)" 2019-02-26 08:53:53 +01:00
l_areastore.cpp Fix AreaStore's IDs persistence (#8888) 2019-09-21 17:54:52 +02:00
l_areastore.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_auth.cpp Replace auth.txt with SQLite auth database (#7279) 2018-08-05 13:13:38 +02:00
l_auth.h Replace auth.txt with SQLite auth database (#7279) 2018-08-05 13:13:38 +02:00
l_base.cpp Work around LuaJIT issues on aarch64 (#9614) 2020-04-08 20:14:08 +02:00
l_base.h Log deprecated Lua function calls (#7491) 2018-07-01 12:31:49 +02:00
l_camera.cpp Fix camera:get_offset() in CSM 2019-11-11 14:06:48 +01:00
l_camera.h Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
l_client.cpp Various features and fixes 2020-04-11 13:12:51 +02:00
l_client.h Implement minetest.sound_fade() 2020-04-11 13:12:51 +02:00
l_craft.cpp Fix some issues with minetest.clear_craft (#8712) 2019-08-10 23:28:00 +02:00
l_craft.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_env.cpp Optimize get_objects_inside_radius calls (#9671) 2020-04-16 08:25:48 +02:00
l_env.h Move core.get_connected_players() implementation to C++ 2020-02-23 22:24:12 +01:00
l_http.cpp HTTP API: Allow binary downloads and headers (#8573) 2019-06-06 19:13:29 +02:00
l_http.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_internal.h scriptapi: Sort out ServerEnvironment / Environment distinction properly 2020-04-11 13:12:51 +02:00
l_inventory.cpp Add core.remove_detached_inventory (#7684) 2018-10-10 20:48:58 +02:00
l_inventory.h Add core.remove_detached_inventory (#7684) 2018-10-10 20:48:58 +02:00
l_item.cpp Drop content_sao.{cpp,h} 2020-04-11 16:07:17 +02:00
l_item.h Add ItemStack:get_description() to get tooltip (#8847) 2019-08-24 18:38:02 +02:00
l_itemstackmeta.cpp Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_itemstackmeta.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_localplayer.cpp Various features and fixes 2020-04-11 13:12:51 +02:00
l_localplayer.h Various features and fixes 2020-04-11 13:12:51 +02:00
l_mainmenu.cpp Formspecs: Add state-selection to style elements (#9378) 2020-04-11 21:39:30 +01:00
l_mainmenu.h Add support for set_formspec_prepend in main menu (#8611) 2019-08-12 19:16:35 +02:00
l_mapgen.cpp scriptapi: Some small optimizations to value pushing (#9669) 2020-04-14 20:44:18 +02:00
l_mapgen.h Add function `minetest.read_schematic` 2019-08-14 13:15:41 +02:00
l_metadata.cpp Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_metadata.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_minimap.cpp Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
l_minimap.h Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
l_modchannels.cpp Fix mod channels crash (#7481) 2018-06-27 17:45:40 +02:00
l_modchannels.h Fix mod channels crash (#7481) 2018-06-27 17:45:40 +02:00
l_nodemeta.cpp Implement minetest.sound_fade() 2020-04-11 13:12:51 +02:00
l_nodemeta.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_nodetimer.cpp Reduce ServerEnvironment propagation (#9642) 2020-04-11 19:59:43 +02:00
l_nodetimer.h Reduce ServerEnvironment propagation (#9642) 2020-04-11 19:59:43 +02:00
l_noise.cpp scriptapi: Some small optimizations to value pushing (#9669) 2020-04-14 20:44:18 +02:00
l_noise.h Log deprecated Lua function calls (#7491) 2018-07-01 12:31:49 +02:00
l_object.cpp scriptapi: Some small optimizations to value pushing (#9669) 2020-04-14 20:44:18 +02:00
l_object.h set_sky improvements, set_sun, set_moon and set_stars 2020-03-05 20:12:19 +01:00
l_particles.cpp Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
l_particles.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_particles_local.cpp Fix particle spawners not visible since CSM spawner implementation (#8289) 2019-03-01 20:16:11 +01:00
l_particles_local.h Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 (#8288)" 2019-02-26 08:53:53 +01:00
l_playermeta.cpp reportMetadataChange; Silence clang warnings 2018-12-21 19:05:29 +01:00
l_playermeta.h reportMetadataChange; Silence clang warnings 2018-12-21 19:05:29 +01:00
l_rollback.cpp SAPI: Mark all Lua API functions requiring envlock 2015-10-25 23:06:48 -04:00
l_rollback.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_server.cpp Improve core.sound_play with ephemeral sounds and player exclusion 2020-02-01 20:31:41 +01:00
l_server.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_settings.cpp Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#9284) 2020-01-25 16:56:54 +01:00
l_settings.h Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#9284) 2020-01-25 16:56:54 +01:00
l_sound.cpp Modernize lua read (part 2 & 3): C++ templating assurance (#7410) 2018-06-30 17:11:38 +02:00
l_sound.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_storage.cpp Modernize lua read (part 2 & 3): C++ templating assurance (#7410) 2018-06-30 17:11:38 +02:00
l_storage.h Fix memory leaks in mod storage (#7500) 2018-06-30 17:11:04 +02:00
l_util.cpp Refactor Script API's log_deprecated 2020-02-23 22:24:12 +01:00
l_util.h Fix isNan on setYaw Lua call (#7380) 2018-05-31 22:52:08 +02:00
l_vmanip.cpp scriptapi: Some small optimizations to value pushing (#9669) 2020-04-14 20:44:18 +02:00
l_vmanip.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00