Commit Graph

3537 Commits

Author SHA1 Message Date
Wojtek Figat
212aba4375 Merge branch 'mclass_method_iter' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-mclass_method_iter 2023-08-14 15:24:47 +02:00
cd56101aa3 Expose Object::DeleteObjectNow as Object.DestroyNow in managed scripting 2023-08-13 23:46:38 +03:00
0008123e76 Cache ManagedDictionary types and helper method thunks 2023-08-13 23:15:06 +03:00
1b0976d99b Refactor ManagedHandlePool
Weak handles are now stored in one sets of dictionarys synchronized with
other threads. This so far seems the fastest way to manage the
dictionaries for now.
2023-08-13 22:14:37 +03:00
65de284a66 Optimize managed method invokers return value marshalling 2023-08-13 22:10:07 +03:00
d9ee8f4665 Cache pooled ManagedArray managed handles 2023-08-13 21:56:52 +03:00
27e1401fc7 Slightly improve MClass::GetMethod method iteration
Check the number of parameters first before expensive string comparison
2023-08-13 21:54:44 +03:00
1254af8bbb Optimize UnboxValue performance, safety and memory usage
- Avoids unnecessary boxing of the converted values by storing them in
unmanaged memory.
- Wrap ToNative-method in a delegate and cache it
- Fixes returning address to unpinned memory by pinning POD-types for
a short period of time.
2023-08-13 21:53:42 +03:00
44b70d87e5 Cache MakeArrayType results in native interop 2023-08-13 21:42:40 +03:00
Wiktor Kocielski
f44156eb80 Remove another unnecessary exposed CommonValue.h 2023-08-13 09:02:43 +03:00
Wiktor Kocielski
1413da189e NetworkReplicator::ResolveForeignObject 2023-08-13 06:39:35 +03:00
Wiktor Kocielski
b35065ab3f Fix annoying error that happens due to an oversight 2023-08-12 03:58:28 +03:00
Wojtek Figat
7e75b9ad78 Merge branch 'skip_postprocess_pass' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-skip_postprocess_pass 2023-08-10 12:04:52 +02:00
Wojtek Figat
6da1a61726 Merge branch 'load_library_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-load_library_fix 2023-08-10 11:59:17 +02:00
Wojtek Figat
85eb3541eb Merge branch 'alc_reload_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-alc_reload_fix 2023-08-10 11:56:17 +02:00
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
Wiktor Kocielski
47c6e54406 Fix exposed public CommonValue inclusion 2023-08-08 08:45:14 +03:00
Wiktor Kocielski
ec3b921a4f Fix navigation rebuilding 2023-08-02 05:17:49 +03:00
fe87eb96e6 Skip post processing when tonemapping and camera artifacts are disabled 2023-08-01 20:20:34 +03:00
db56284ca4 Fix WindowsPlatform::LoadLibrary to not modify the string parameter 2023-08-01 20:19:10 +03:00
Wojtek Figat
911cdb3f2d Softlock fix 2023-08-01 10:01:00 +02:00
Wojtek Figat
714b35b520 Merge branch 'mordorfix' of https://github.com/Withaust/FlaxEngine into Withaust-mordorfix 2023-08-01 09:59:36 +02:00
Wojtek Figat
cfab58ccc6 Fix some actor assets into soft checks 2023-08-01 09:57:38 +02:00
Wojtek Figat
8d48b27608 Merge branch 'dotnet_defines' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet_defines 2023-07-31 17:13:52 +02:00
3ba05f52df Add common .NET SDK preprocessor definitions 2023-07-30 21:57:44 +03:00
bf351f71bf Guard generic AssetReferenceAttribute to work only in .NET 7 2023-07-30 20:48:36 +03:00
06250fcb6d Implement a generic version of AssetReferenceAttribute 2023-07-30 20:40:30 +03:00
Wiktor Kocielski
383b21c108 Softlock fix 2023-07-29 18:55:29 +03:00
Wiktor Kocielski
eb641e142e ShadowOfMordor terrain fix 2023-07-29 01:00:07 +03:00
Wojtek Figat
95922bb38b Fix compilation 2023-07-26 21:18:22 +02:00
Wojtek Figat
77daf85fc1 Add unit test for angles unwind math #1267 2023-07-26 19:31:43 +02:00
Wojtek Figat
fae20daac9 Cleanup code #1267 2023-07-26 19:28:55 +02:00
NoriteSC
3bd8d930e0 doc fixes and code corections
mathf UnwindRadians has fixed coust
added UnwindRadiansAccurate oldversion
2023-07-25 15:27:18 +02:00
Wojtek Figat
543433440e Fix nested animation playrate when the framerate is different
#1258
2023-07-24 19:21:03 +02:00
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
c9254457a9 Code style tweaks 2023-07-24 16:24:39 +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
Chandler Cox
9b0c6a070a Add InputEvent and InputAxis editors and changed UICanvas to use them. 2023-07-21 13:26:51 -05:00
Wojtek Figat
b2b10ce7da Fix various core types to be trivially constructible as properly POD-type 2023-07-18 18:20:11 +02:00
Wojtek Figat
872509df2a Fix incorrect Transform Position To Screen UV in particles graph in CPU code path 2023-07-18 18:13:19 +02:00
Wojtek Figat
338499536f Add ModelInstanceActor::GetMaterialSlots 2023-07-18 10:55:00 +02:00
Wojtek Figat
0f613abfb9 Add ToSpan from 24c03c0e4b 2023-07-18 10:54:21 +02:00
Wojtek Figat
5b40f770b1 Merge branch 'mat-entry' of https://github.com/Tryibion/FlaxEngine into Tryibion-mat-entry 2023-07-18 10:25:35 +02:00
Wojtek Figat
488958ce44 Fix DrawSceneDepth to properly draw scene objects when custom actors list is empty
#1253
2023-07-18 10:16:11 +02:00
Wojtek Figat
9c2cff6f3c Merge branch 'generic_type_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-generic_type_fix 2023-07-18 09:50:56 +02:00
Wojtek Figat
44518e88d5 Fix crash when using Vector3 soft casting in Visual Scripts 2023-07-18 09:48:43 +02:00
Wojtek Figat
011162744c Fix various keyboard handling on macOS 2023-07-16 12:04:22 +02:00
Wojtek Figat
6853aa6e81 Add control/command/option keys handling on macOS 2023-07-16 12:04:18 +02:00
Wojtek Figat
6fc168bdf1 Add macOS message box with buttons 2023-07-16 12:04:12 +02:00