godot/core/templates
Rémi Verschelde c717d5c64b Arrays: Zero new items of trivial types on resize() (bindings only)
This is not enabled by default in the core version for performance reasons,
as Vector/CowData are used in critical code paths where not zero'ing memory
which is going to be set later on can be important.

But for bindings / the scripting API, we make zero the new items by default
(which already happened for built types like Vector3, etc., but not for
trivial types like int, float).

Fixes #43033.

Co-authored-by: David Hoppenbrouwers <david@salt-inc.org>
2022-08-04 13:35:37 +02:00
..
bin_sorted_array.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
command_queue_mt.cpp
command_queue_mt.h Fix some issues found by cppcheck. 2022-04-06 14:34:37 +03:00
cowdata.h Arrays: Zero new items of trivial types on resize() (bindings only) 2022-08-04 13:35:37 +02:00
hash_map.h Optimize HashMap/HashSet using fastmod 2022-06-23 18:08:52 +02:00
hash_set.h Optimize HashMap/HashSet using fastmod 2022-06-23 18:08:52 +02:00
hashfuncs.h Implement Vector4, Vector4i, Projection 2022-07-23 14:00:01 +02:00
list.h
local_vector.h Avoid manual memory management of certain arrays in Vulkan RD 2022-06-28 10:01:46 +02:00
lru.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
oa_hash_map.h Add mutable OAHashMap::lookup_ptr function to fix mutability. 2022-04-22 09:20:15 +02:00
paged_allocator.h Variant memory pools 2022-07-04 12:01:46 +01:00
paged_array.h
pair.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
pass_func.h
pooled_list.h
rb_map.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
rb_set.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
rid_owner.cpp
rid_owner.h Add a new HashSet template 2022-05-20 22:40:38 +02:00
rid.h
ring_buffer.h
safe_list.h add SafeList destructor which calls maybe_cleanup() to prevent mem leak 2022-04-08 09:50:49 -04:00
safe_refcount.h Implement a Worker ThreadPool 2022-07-22 11:46:48 +02:00
SCsub
search_array.h
self_list.h Zero initialize all pointer class and struct members 2022-04-04 19:49:50 +02:00
simple_type.h
sort_array.h
vector.h Arrays: Zero new items of trivial types on resize() (bindings only) 2022-08-04 13:35:37 +02:00
vmap.h
vset.h