146 Commits

Author SHA1 Message Date
mafiesto4 b6c7358953 Fix crash when caching DebugCommands and classes cache gets modified
#4054
2026-04-16 22:33:36 +02:00
mafiesto4 d96e1297f7 Optimize MMethod::GetParameterIsOut to cache all parameters in a single bit-flag 2026-03-30 19:56:32 +02:00
mafiesto4 bf20f5d2bf Fix scripting bindings in searching virtual methods to invoke when there is a name and parameter count collision
#3649
2026-03-30 19:54:47 +02:00
mafiesto4 7b7a92758f Optimize VariantType to use static type name in game or from non-reloadable assemblies
This avoids many dynamic memory allocations in Visual Scripts and Anim Graph.

#
2026-02-09 18:01:47 +01:00
mafiesto4 c0dda45c7b Fix crash on exit when C# code was bound to asset unloading event called after C# shutdown 2025-11-18 18:00:02 +01:00
mafiesto4 4008e19ca9 Fix various build issuesin uncommon configurations 2025-11-14 00:52:14 -08:00
mafiesto4 64e127a47a Fix crashes of scripting backend on Android 2025-09-09 15:25:24 +02:00
mafiesto4 4aa2676084 Fix MClass::GetNamespace typo that returned name instead 2025-07-31 20:02:42 +02:00
mafiesto4 03d52d4eb9 Add support for building engine without logging 2025-05-28 04:05:12 +02:00
mafiesto4 ab61ed5a37 Add more memory profiling insights and groups 2025-05-28 04:03:44 +02:00
mafiesto4 98e59450f1 Add freeing managed assembly memory on reload/unload 2025-05-25 17:39:51 +02:00
mafiesto4 8c62f1120f Optimize dynamic memory allocations for managed runtime interop collections with a new Arena Allocation 2025-05-25 17:39:20 +02:00
mafiesto4 410ec0465c Optimize CSharp scripting runtime to use arena allocator per-assembly 2025-05-25 02:04:16 +02:00
mafiesto4 c639a3103c Add memory profiling events to the main areas of the engine 2025-05-22 04:47:01 +02:00
mafiesto4 9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
GoaLitiuM b095acd4a5 Fix scripting AssemblyLoadContext not getting unloaded 2025-02-26 20:29:19 +02:00
mafiesto4 a839cf796b Fix MUtils::GetClass for Float2 2024-11-18 14:42:13 +01:00
mafiesto4 1181deb5df Fix crash when using attributes cache after hot-reload in editor 2024-10-25 13:25:36 +02:00
mafiesto4 e860f969be Add attributes support for dotnet interop for methods, fields and properties 2024-10-04 15:59:34 +02:00
mafiesto4 aba46cb2c6 Fix naming convention in scripting backend for klass 2024-09-22 12:30:34 +02:00
GoaLitiuM e77ae12b9b Fix unboxing of array type Variants 2024-05-05 13:15:54 +03:00
mafiesto4 14902dc29e Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Flax.flaxproj
2024-02-26 19:49:39 +01:00
mafiesto4 f4d236d353 Fix crash on invalid string converted to managed string 2024-02-26 19:01:46 +01:00
mafiesto4 859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
mafiesto4 d7dbc0fbdc Fix opening projects with PostFx material assigned in Graphics Settings
#1993
2024-02-21 20:21:45 +01:00
mafiesto4 69b7a10c1f Add Stopwatch for accurate duration measuring 2024-01-28 20:31:03 +01:00
mafiesto4 cebd28c3a7 Revert fd938e8284 2023-11-29 18:46:18 +01:00
mafiesto4 8ff4f95cef Optimize some code and cleanup code style in natvis file 2023-11-28 16:02:51 +01:00
mafiesto4 35ebdb0ffe Refactor INetworkDriver::PopEvent to use network event as output parameter rather than raw pointer
#1992
2023-11-28 11:24:17 +01:00
mafiesto4 fd938e8284 Fix incorrect pointer marshalling from Variant to managed runtime
#1992
2023-11-28 11:22:14 +01:00
mafiesto4 3320c76e14 Add soft check for null managed object value for unboxing 2023-11-14 11:23:15 +01:00
mafiesto4 bc762761dd Fix engine when used without C# scripting at all 2023-10-11 12:35:27 +02:00
mafiesto4 d10d52ec0c Add thread-safety to various scripting methods 2023-10-01 10:57:51 +02:00
mafiesto4 82b2f46b48 Post-merge tweaks for #1312 2023-09-28 19:21:06 +02:00
mafiesto4 279528a30d Merge branch 'marshalling_scriptingobject_changes' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-marshalling_scriptingobject_changes
# Conflicts:
#	Source/Engine/Engine/NativeInterop.Unmanaged.cs
#	Source/Engine/Scripting/Runtime/DotNet.cpp
2023-09-28 18:41:20 +02:00
mafiesto4 8bd6649510 Refactor managed array unboxing to handle case of C# array passes as object
#1415
2023-09-20 14:17:11 +02:00
mafiesto4 48d4a51c1b Fix crash when boxing native array to managed value 2023-09-11 15:06:26 +02:00
GoaLitiuM 53b1d0dd85 Optimize ScriptingObject managed initialization 2023-08-13 23:56:27 +03:00
GoaLitiuM 9d8105e3f3 Separate managed assembly unloading and scripting ALC reinitialization
Fixes an issue with multiple managed assemblies unloading and releasing
all cached data before native resources were fully released in other
assemblies.
2023-08-08 17:39:31 +03:00
mafiesto4 11bb6d4364 Fix crash when using custom Anim Graph node (.NET 7 regression) 2023-07-24 14:23:28 +02:00
mafiesto4 144b72109b Fix crash after scripting hot-reload in editor due to cached class attribute objects
#1108
2023-05-19 13:53:49 +02:00
mafiesto4 4e78b49cac Improve managed exceptions logging 2023-05-10 20:42:18 +02:00
mafiesto4 ac67813198 Optimize code to alloc memory manually in #1088 2023-05-10 09:31:54 +02:00
mafiesto4 c73897ce7f Merge branch 'object_array_marshalling' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-object_array_marshalling 2023-05-10 09:22:22 +02:00
GoaLitiuM da149d32cf Force GC to run periodically in order to reduce stuttering 2023-05-08 23:29:39 +03:00
GoaLitiuM cae07f3623 Optimize marshalling managed arrays of object references 2023-05-08 23:28:49 +03:00
mafiesto4 f046642ba7 Improve stability by fixing various crashes with dotnet7 2023-04-18 12:36:33 +02:00
mafiesto4 67b373c6df Merge remote-tracking branch 'origin/master' into 1.6 2023-04-17 13:18:08 +02:00
mafiesto4 89704bebe9 Add Span<T> support for scripting fields 2023-04-14 15:01:22 +02:00
mafiesto4 29d0281932 Missing change 2023-03-31 19:37:55 +02:00