Commit Graph

73 Commits

Author SHA1 Message Date
Wojtek Figat
78d519cb9a Fix ConcurrentSystemLocker to have exclusive lock as an option 2025-06-29 19:16:41 +02:00
Wojtek Figat
45e82d21f4 Fix ConcurrentSystemLocker to guard for a single writer at once 2025-06-26 19:51:06 +02:00
Wojtek Figat
2e10d776e9 Optimize updating actor rendering entry with better thread locking that support async writes on actor update 2025-06-19 14:04:06 +02:00
Wojtek Figat
68dce7e4dd Merge remote-tracking branch 'origin/master' into 1.11 2025-06-18 22:46:10 +02:00
Wojtek Figat
6479a3d3c6 Fix log spam in task when waiting for task to end 2025-06-18 22:41:42 +02:00
Wojtek Figat
e9835766bc Add red color to Tracy profiler zones that cause CPU waiting to improve profiling 2025-06-11 14:56:43 +02:00
Wojtek Figat
cd637e8a7a Add more memory profiling coverage 2025-06-06 14:38:22 +02:00
Wojtek Figat
f462a2187f Merge branch 'master' into 1.11 2025-06-05 18:03:17 +02:00
Wojtek Figat
c639a3103c Add memory profiling events to the main areas of the engine 2025-05-22 04:47:01 +02:00
Wiktor Żurawik
6be8158209 Fix timeout calculation in Task::Wait 2025-05-13 23:10:57 +02:00
Wojtek Figat
d77024bbf1 Fix crash when existing engine while content streaming is active 2025-04-22 16:16:46 +02:00
Wojtek Figat
9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
Wojtek Figat
2ab9adab24 Merge remote-tracking branch 'origin/master' into 1.10 2025-02-24 23:27:56 +01:00
Wojtek Figat
060bc0aaf8 Fix crash in animations system when assets gets loading/unloaded while async jobs are active
#2974
2025-02-18 22:30:49 +01:00
Wojtek Figat
1e262b69cc Add Task::WaitAll with a span of tasks and wrap around profiler macro 2025-01-03 01:05:56 +01:00
Wojtek Figat
fee0ab74ff Update old doc comments 2024-12-28 21:31:21 +01:00
Wojtek Figat
da203352fd Refactor old code documentation 2024-09-24 18:20:12 +02:00
Wojtek Figat
b545d8800c Optimize job system memory allocations 2024-06-24 23:19:01 +02:00
Wojtek Figat
3bbaa8dad0 Remove unused job system stats and concurrent queue code 2024-06-24 19:02:38 +02:00
Wojtek Figat
861d8a683f Add JobSystem::Dispatch that accepts dependent jobs that needs to be completed before 2024-06-24 13:12:48 +02:00
Wojtek Figat
2773949197 Optimize wait signal in Job System to wake waiting threads only when job batch ends 2024-06-22 09:58:20 +02:00
Wojtek Figat
515ee96a31 Fix compilation regression 2024-04-22 19:10:06 +02:00
Wojtek Figat
32b15f90ab Minor improvements 2024-04-22 18:10:58 +02:00
Wojtek Figat
9c2c02c1cf Fix various issues found with thread sanitizer on macOS 2024-04-13 19:20:49 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
e255778c07 Add profiler event to task wait method 2024-02-20 12:59:00 +01:00
Wojtek Figat
f9ca69d8a9 Disable dynamic buckets in ThreadLocal on non-Desktop platforms that use fixed set of thread count 2024-02-08 10:47:55 +01:00
Wojtek Figat
082768d08c Refactor ThreadLocal when running on hardware with more cores than PLATFORM_THREADS_LIMIT 2024-02-07 23:39:02 +01:00
Wojtek Figat
d6dc1f9998 Various minor tweaks 2023-12-03 14:09:23 +01:00
Wojtek Figat
7f87e9794b Fix job system buffer allocation data 2023-11-29 19:12:58 +01:00
Wojtek Figat
b960600102 Optimize scenes loading with Job System 2023-10-01 10:55:01 +02:00
Wojtek Figat
91c017713c Merge remote-tracking branch 'origin/master' into 1.6 2023-04-13 12:12:33 +02:00
Wojtek Figat
0c167f38b7 Add TaskGraphSystem.RemoveDependency and automatically cleanup dependencies on system destroy 2023-04-05 22:43:05 +02:00
Wojtek Figat
510fc443e8 Refactor CoreCLR runtime into explicit dotnet api instead of mocking mono api
Required by platforms that will use mono under the hood for .Net 7
New `USE_CSHARP` define for C# ability
Engine doesn't use `mono_*` apis directly but via MCore/MClass/MMethod/ apis
2023-03-27 17:29:42 +02:00
Wojtek Figat
eed2cdfe04 Progress on dotnet7 runtime hosting with mono 2023-03-22 17:59:46 +01:00
b0bc1fa310 Fix error when joining exited threads
The internal thread handles were cleared prematurely when attempting to join them. The handles should be also cleared when trying to kill already exited threads.
2023-01-29 21:30:01 +02: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
7184566b4b Merge branch 'master' into 1.5 2022-12-29 23:04:18 +01:00
Wojciech Figat
6ef49349ff Fix assertion on thread double-free from registry (not harmful) 2022-12-29 18:30:51 +01:00
Wojciech Figat
df82a0f5d0 Add **GPU Memory profiler** to Editor 2022-12-08 16:30:37 +01:00
Wojtek Figat
eb281a7574 Additional improvements to scene rendering 2022-11-15 22:39:03 +01:00
Wojtek Figat
9c7da16c1a Add multi-threaded scene rendering with Job System 2022-11-06 20:44:43 +01:00
Wojtek Figat
bb7d4f7812 Fix console builds 2022-08-07 21:06:17 +02:00
Wojciech Figat
9d8f75d957 Fix rare issues with Task Graph not waiting for system due to recent job system changes #721 2022-08-05 11:05:11 +02:00
Wojciech Figat
ec7aece135 Improve Job System changes to prevent dynamic memory allocation and ref counting (#721) 2022-07-05 08:52:53 +02:00
Wojciech Figat
64b2b23201 Merge branch 'jobsystem_changes' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-jobsystem_changes 2022-07-04 15:45:49 +02:00
1978949b22 Allocate job context dynamically to prevent deadlocks 2022-06-12 13:56:13 +03:00
dc2a9c0702 Support dispatching jobs within jobs in JobSystem 2022-06-06 17:17:15 +03:00
Wojciech Figat
7979831f5c Add JobSystem.Execute utility for quick jobs running 2022-02-14 14:34:43 +01:00