Commit Graph

27 Commits

Author SHA1 Message Date
Wojtek Figat
175fd31431 Fix Delegate invoke to copy arguments values to each call instead of passing as reference 2024-06-05 18:00:00 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
e429e85aae Continue Delegate refactor to use single memory allocation and atomic operations for data access 2023-11-03 22:27:58 +01:00
Wojtek Figat
f9614a4879 Disable capacity alloc on delegate creation 2023-10-31 15:31:40 +01:00
Wojtek Figat
ba374a27db Reduce code bloat 2023-10-23 22:26:55 +02:00
Wojtek Figat
af3f6d0003 Fix crash in new Delegate when checking if it's binded 2023-10-01 10:56:09 +02:00
Wojtek Figat
b7e871ecfd Minor tweaks 2023-09-28 10:58:29 +02:00
58b2530ac4 Remove redundant reference counter from Delegate 2023-09-16 14:16:25 +03:00
c686e59fd6 Lazy allocate mutex in Delegate 2023-09-13 17:30:13 +03:00
Wojtek Figat
936018c49e Add DELEGATE_USE_ATOMIC to toggle #1319 for backward compatibility 2023-09-13 11:44:44 +02:00
4ffec5e09a Use HashSet as backing storage for bound Delegate functions 2023-09-02 23:14:38 +03:00
017b45d674 Use mutex over atomic operations in Delegate 2023-08-16 17:39:08 +03:00
Wojtek Figat
60181a29a3 Add copy/move ctor/operator to Delegate 2023-07-02 15:46:55 +02:00
Wojtek Figat
f5adbc08fa Remove unused Function::TryCall 2023-05-23 16:08:51 +02:00
Wojtek Figat
2338e03554 Fix crash when unbinding from Delegate from other thread during invocation
Caused by `callee` being invalid thus it's better to read function pointer again to ensure that both are valid before calling function.
2023-02-17 10:31:49 +01: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
Wojciech Figat
ed700cb070 Add **Assets profiler** to Editor 2022-12-09 15:46:01 +01:00
Wojtek Figat
47cc49a962 Add Delegate::BindUnique 2022-04-14 22:17:40 +02:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
Wojciech Figat
2daec98fd7 Reuse code from Bind lambda in Function 2021-12-07 18:27:21 +01:00
intolerantape
8d758ced15 Added a constructor for C++ Function class to support initialization directly from reference-captured lambda.
Previously, Function had to initialize reference-captured lambdas with the Bind() method.
2021-12-02 07:17:39 -08:00
Wojtek Figat
cabd06dd53 Add C++ lambda support for Function<> and Delegate<> 2021-10-05 13:07:38 +02:00
Wojtek Figat
7b2c034fba Fix using Delegate<> in API event 2021-04-14 12:23:50 +02:00
Jean-Baptiste Perrier
03eb39afe6 Bumping all copyright headers to 2021. 2021-01-02 14:28:49 +01:00
Wojtek Figat
60d4712680 Add inlined function call in Delegate invoke 2020-12-09 16:34:03 +01:00
Wojtek Figat
6fb9eee74c You're breathtaking! 2020-12-07 23:40:54 +01:00