Commit Graph

213 Commits

Author SHA1 Message Date
Wojtek Figat
619b0bff6b Merge branch 'fix/string-marshalling' of https://github.com/mtszkarbowiak/FlaxEngine into mtszkarbowiak-fix/string-marshalling 2023-07-24 18:14:24 +02:00
Wojtek Figat
11bb6d4364 Fix crash when using custom Anim Graph node (.NET 7 regression) 2023-07-24 14:23:28 +02:00
Mateusz Karbowiak
91e0e2011c Fix visibility of string wrapper 2023-07-22 18:44:36 +02:00
ff56152ef2 Fix releasing non-collectible types with collectible generic types 2023-07-15 13:20:56 +03:00
Wojtek Figat
04ef3c60d5 Fix regression from c79952a4d6 2023-07-05 09:27:21 +02:00
Wojtek Figat
c79952a4d6 Implement missing dotnet7 interop for field and stabilize interop 2023-07-04 17:57:59 +02:00
Wojtek Figat
9a1fd12a85 Fix sizeof struct within generic type instance
#1219
2023-07-03 11:42:15 +02:00
28335478bd Fix managed library location resolver 2023-07-02 21:56:41 +03:00
Wojtek Figat
3119c50789 Fix nullable warnings 2023-06-28 20:09:01 +02:00
87e96a9017 Fix native library lookup after hot reload 2023-06-20 16:29:04 +03:00
Wojtek Figat
6b8d8b7913 Various fixes and improvements to auto-generated bindings usability 2023-06-12 14:35:11 +02:00
Wojtek Figat
652f8ccb8d Fix crash when reading field value from C# in AOT on iOS 2023-06-11 15:05:14 +02:00
Wojtek Figat
ad1c573678 Fix false-positive error when interop structure has a additional memory size (alignment) 2023-05-25 00:12:54 +02:00
Wojtek Figat
c2cd3b64ff Improve generated bindings code usability in Editor 2023-05-24 23:50:51 +02:00
Wojtek Figat
3e792e6cd7 Add NativeInteropException for native interop crashes 2023-05-19 13:52:30 +02:00
Wojtek Figat
b402603b1d Merge branch 'latefixedupdate' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-latefixedupdate 2023-05-12 14:41:49 +02:00
cbe07b842f Fix resolving managed scripts references in Editor 2023-05-11 22:11:46 +03:00
Wojtek Figat
637850d06c Fix crash when C# type has missing empty ctor or it throws an exception
#1019
2023-05-10 20:41:58 +02:00
Wojtek Figat
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
da149d32cf Force GC to run periodically in order to reduce stuttering 2023-05-08 23:29:39 +03:00
66de1e744a Use Unsafe.As casting in generated managed marshallers 2023-05-08 23:28:54 +03:00
cae07f3623 Optimize marshalling managed arrays of object references 2023-05-08 23:28:49 +03:00
Wojtek Figat
69cdb1268a Merge remote-tracking branch 'origin/master' into 1.6 2023-05-08 12:58:42 +02:00
Wojtek Figat
ec2226f06e Fixes for dotnet7 after #1061 and 5e31a678bd 2023-05-05 11:58:11 +02:00
Wojtek Figat
17fbfc969b Merge branch 'weak_handle_improvements_2' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-weak_handle_improvements_2 2023-05-05 10:04:27 +02:00
Wojtek Figat
f82e4b332d Merge branch 'reuse_pooled_array_buffers' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-reuse_pooled_array_buffers 2023-05-05 10:02:28 +02:00
5efbfc86ad Prevent weak managed handle collections during long operations
Loading larger scenes may trigger multiple collections during the P/Invoke call,
so prevent collections from happening within a second to avoid in-flight handles
getting collected before the operation finishes.
2023-05-01 20:08:00 +03:00
36a9ffe3aa Try to reuse previously allocated buffers in pooled ManagedArrays 2023-05-01 20:07:27 +03:00
65b63da93a Improve custom attributes caching in managed classes 2023-05-01 20:06:51 +03:00
320955f8b7 Use weak handles for marshalling temporary managed-to-native parameters 2023-04-29 12:41:02 +03:00
6378f62acd Improve weak managed handle collection
Use thread-static pools for weak managed handles in order to reduce locking,
and collect the handles either right after garbage collection or when the pool
size becomes too large.
2023-04-29 12:40:58 +03:00
Wojtek Figat
8b2d3db3f1 Fix passing boxed reference values to managed thunk and properly unbox non-POD structures 2023-04-18 15:54:54 +02:00
Wojtek Figat
f046642ba7 Improve stability by fixing various crashes with dotnet7 2023-04-18 12:36:33 +02:00
Wojtek Figat
9a84f9e4ac Improve native library path on dotnet when using plugins 2023-04-17 14:06:47 +02:00
Wojtek Figat
609217a3bb Fix using Nullable<T> in C# properties
Fixes #935
2023-04-12 15:47:03 +02:00
558a7d99ff Add LateFixedUpdate event for scripts 2023-04-09 18:26:33 +03:00
7df5a7c646 Fix managed method invoker delegate caching 2023-04-09 18:25:14 +03:00
Wojtek Figat
84bb56d68b Minor dotnet tweaks 2023-04-03 14:12:27 +02:00
Wojtek Figat
350112a0d7 Fix C# string chars getter in AOT build 2023-04-03 11:23:32 +02:00
Wojtek Figat
21f419dd4b Fix C# assemblies loading in AOT mode (use file path to correctly load precompiled native assembly) 2023-04-02 14:50:42 +02:00
Wojtek Figat
12f4dc74d2 Optimize default C# stdlib references to prevent using jit-ed features in a game assembly 2023-04-01 23:34:05 +02:00
Wojtek Figat
dfca248ebd Optimize C# IsCollectible to be used in Editor-only builds 2023-03-31 14:56:57 +02:00
Wojtek Figat
a25eae5d10 Move dotnet7 native interop, wrappers and marshalers into FlaxEngine.Interop namespace 2023-03-28 13:20:18 +02:00
Wojtek Figat
6f7b138488 Implement missing dotnet7 api 2023-03-28 13:00:42 +02:00
Wojtek Figat
52fb941237 Refactor Native Interop codebase with cleanup/rename 2023-03-28 12:53:06 +02:00
Wojtek Figat
0694f87b0d Fixes for Visual Scripting interop via C# on new dotnet7 hosting 2023-03-28 12:01:55 +02:00
Wojtek Figat
ed13de2d5b Fix using managed arrays with Variant in dotnet7 2023-03-27 19:41:53 +02:00
Wojtek Figat
4755c42d70 Fix .NET generic class typename to match old mono style without inlined assembly name and ver 2023-03-27 17:30:48 +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
5dbc5f42d2 Remove mono files 2023-03-20 19:32:24 +01:00