Commit Graph

33 Commits

Author SHA1 Message Date
Mateusz Karbowiak
dca48b335a Hash collections bucket state enum extracted
This is a small compilation time optimization by reducing total number of generated types. Should not change runtime behavior.
2024-10-31 02:41:51 +01:00
Mateusz Karbowiak
fbb840dff3 Collections de/increment operations fix
This one is more stylistic but is consistent with practice of using pre- operations for iterators.
2024-10-31 00:45:00 +01:00
Mateusz Karbowiak
9c448f75d8 Collections const correctness fix (style) 2024-10-31 00:29:38 +01:00
Mateusz Karbowiak
66b6a29ed4 Collections iterator move noexcept fix 2024-10-31 00:21:34 +01:00
Mateusz Karbowiak
8cb7fb48ce Dictionary returning const item fix
Returning const object does not prevent from using mutable by triggering copy constructor.
2024-10-31 00:21:33 +01:00
Mateusz Karbowiak
5439efc559 Collections implicit cast constructor fix
This one prohibits annoying casts. It is also important for future context injection and follows STL practice.
2024-10-30 22:30:55 +01:00
Mateusz Karbowiak
f77f551b72 Collections type aliasing fix
This one is debatable. It follows modern C++.
2024-10-30 22:30:54 +01:00
Mateusz Karbowiak
02db7d02f2 Collections const-correctness fix 2024-10-30 21:06:16 +01:00
Wojtek Figat
a18565fd61 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-23 00:05:00 +02:00
Wojtek Figat
23f60da40d Fix various code issues found using PVS-Studio 2024-08-22 20:24:52 +02:00
Wojtek Figat
40652a0ebc Fix HashSet adding item via move operation 2024-05-08 17:28:14 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
4f8aff4352 Refactor memory allocators to use dedicated path when moving collection data that is not blittable
#2001 #1920
2023-11-28 16:02:36 +01:00
Wojtek Figat
51c0a6e100 Fix crash regression on Dictionary and HashSet capacity set to 0 when it contains elements 2023-11-06 14:32:04 +01:00
Wojtek Figat
6f1ee382b5 Fix regression from 087cfd7a8c on hashset item duplicate re-add 2023-11-03 19:07:16 +01:00
Wojtek Figat
087cfd7a8c Refactor HashSet and Dictionary collections capacity to handle rehashing when too many elements were deleted 2023-11-02 19:59:01 +01:00
Wojtek Figat
f434ff2efe Fix memory overcommitment by HashSet when adding and removing the same item in a loop
#1829
2023-10-29 13:37:05 +01:00
Wojtek Figat
9291295a4d Fix Dictionary and HashSet iterators to prevent unwanted data copies
#1361
2023-09-10 11:25:36 +02:00
d3b96742e7 Fix compile-time error in HashSet::ClearDelete 2023-06-28 14:42:27 +03:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojtek Figat
8e52e2fb10 Merge branch 'master' into 1.5 2022-11-27 12:11:50 +01:00
Wojtek Figat
b1618a88be Fix invalid rounding up to power of two in allocators
#833
2022-11-25 22:07:13 +01:00
Wojciech Figat
01a7ae8bd4 Add NetworkTransform component 2022-10-31 16:31:06 +01:00
Wojciech Figat
8dec405f4f Add iterator copy operator in collections 2022-10-21 15:40:47 +02:00
Wojtek Figat
d4d27b88f0 Format engine codebase with ReSharper 2022-06-14 19:05:04 +02:00
Wojciech Figat
8ed2bb4179 Fix HashSet::Remove return value if empty 2022-04-21 11:37:50 +02:00
Wojciech Figat
c53a463bb1 Refactor HashSet to support custom allocator 2022-04-19 17:14:29 +02:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
Wojciech Figat
653c209567 Fixes and tweaks for C++ API reference docs generation 2021-12-02 10:13:20 +01:00
Wojtek Figat
4765e1af12 Add support for allocator type in Dictionary 2021-07-08 00:34:50 +02:00
Jean-Baptiste Perrier
03eb39afe6 Bumping all copyright headers to 2021. 2021-01-02 14:28:49 +01:00
Wojtek Figat
6fb9eee74c You're breathtaking! 2020-12-07 23:40:54 +01:00