Commit Graph

334 Commits

Author SHA1 Message Date
Wojtek Figat
0be26fbb51 Merge branch 'platform_tick_unthrottle' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-platform_tick_unthrottle 2024-08-05 14:37:49 +02:00
Wojtek Figat
1e43b031ba Fix unpacking marshaled field value
#2790
2024-07-25 16:50:01 +02:00
4d0dda19b9 Improve engine responsiveness when not focused 2024-07-20 15:39:11 +03:00
d56493da54 Use UnsafeAccessor to initialize scripting object interop fields 2024-06-30 15:52:14 +03:00
Wojtek Figat
c9bebc0700 Merge branch 'marshaller_namespace' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-marshaller_namespace 2024-06-08 12:06:17 +02:00
bf5e5d1254 Refactor native interop internal type lookup 2024-06-01 23:20:33 +03:00
adbe43c2c2 Move generated marshallers into separate namespace
Avoid polluting the `FlaxEngine` namespace with interop related
marshallers, move those to nested namespace called `Interop` where most
of the common marshallers are placed already.
2024-06-01 23:20:32 +03:00
dedb3d57fd Fix Variant getters returning already freed managed handles 2024-06-01 20:22:16 +03:00
e77ae12b9b Fix unboxing of array type Variants 2024-05-05 13:15:54 +03:00
Wojtek Figat
4414398f09 Fix crash when accessing physics objects state in OnLateFixedUpdate
#2494
2024-04-26 19:08:25 +02:00
Wojtek Figat
9f983cff49 Refactor engine loop to have better sync between game update, physics and drawing 2024-04-17 13:38:06 +02:00
Wojtek Figat
e53ab10145 Add Engine::UpdateCount to sync gameplay logic updates with game loop rather than draw frames 2024-04-17 13:31:12 +02:00
Wojtek Figat
692a61c948 Add Time.Synchronize to stabilize engine loop 2024-04-17 13:01:58 +02:00
Wojtek Figat
03b498546d Refactor UpdateGraph to run after engine services and game scripts
#2413
2024-04-16 20:27:31 +02:00
Wojtek Figat
53689063b9 Minor tweaks to Gameplay Globals
#2412
2024-04-14 00:09:29 +02:00
Wojtek Figat
8144db8e13 Fix various issues found with adrress sanitizer on macOS 2024-04-13 19:20:49 +02:00
Wojtek Figat
d719c381ea Merge remote-tracking branch 'origin/master' into 1.8 2024-03-11 23:49:33 +01:00
Wojtek Figat
b00b5bed00 Add InputAxis and InputEvent integration with stdlib features 2024-03-10 21:11:35 +01:00
b6879e7688 Fix concurrent access to cached marshalled type sizes
Also optimize hot path for type size when we have generic type
2024-03-03 01:32:52 +02:00
Wojtek Figat
53bd576ade Fix game settings serialization bug 2024-02-28 02:05:26 +01:00
Wojtek Figat
14902dc29e Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Flax.flaxproj
2024-02-26 19:49:39 +01:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
8898c20ad1 Fix crash when using generic interface in C#
#1983
2024-02-25 23:40:14 +01:00
Wojtek Figat
2df3d0f747 Fix crash when loading level with abstract script class
#1990
2024-02-25 14:54:57 +01:00
Wojtek Figat
318b00c617 Fix editor exit with error code when game cooking CL fails
#2248
2024-02-21 23:18:09 +01:00
Wojtek Figat
10180de9c6 Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Source/Editor/Utilities/EditorUtilities.cpp
#	Source/Editor/Utilities/EditorUtilities.h
2024-02-19 22:26:16 +01:00
Wojtek Figat
f0f8da3c09 Various fixes 2024-02-16 12:29:59 +01:00
Wojtek Figat
07e93e261e Fix physics simulation result collection to happen before draw or next update 2024-02-13 09:52:26 +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
c60058758b Minor fixes 2024-01-28 01:15:29 +01:00
Wojtek Figat
37da55896c Remove unused DateTime apis and cleanup constants 2024-01-05 11:15:32 +01:00
Diego Fonseca
c17ff3926a Update Time.cpp 2023-12-08 14:35:10 -05:00
Diego Fonseca
4707f98fab Update Time.cpp 2023-12-08 14:13:50 -05:00
Wojtek Figat
7db0ae59bb Fix managed method delegate creation to be thread-safe 2023-12-07 14:35:13 +01:00
Wojtek Figat
cebd28c3a7 Revert fd938e8284 2023-11-29 18:46:18 +01:00
Wojtek Figat
d3a77c7a55 Fix regressions 2023-11-28 17:38:06 +01:00
Wojtek Figat
0aeac36f09 Fix __cplusplus macro on MSVC and add logging C++ version used during compilation 2023-11-28 15:55:34 +01:00
Wojtek Figat
fd938e8284 Fix incorrect pointer marshalling from Variant to managed runtime
#1992
2023-11-28 11:22:14 +01:00
Wojtek Figat
39dc5939e3 Fix crash when boxing native non-POD structure into managed format
#1992
2023-11-27 17:08:07 +01:00
Wojtek Figat
0f14672e3b Codestyle formatting and fixes for #1888 2023-11-13 09:45:33 +01:00
Wojtek Figat
0fe9f6f439 Merge branch 'Flax-SSDev' of https://github.com/SinnersSum/FlaxEngine into SinnersSum-Flax-SSDev 2023-11-12 21:47:45 +01:00
SS
77b6a4a68b Fixed issue in NativeInterop
Readded check in current app domain to ExtendedSerializationBinder
2023-11-07 16:03:03 -07:00
SS
d6e93a7fab Fixed issue involving stale scripting assemblies in FlaxEngine.Json dynamic type resolution
Added new ExtendedSerializationBinder
Added callback to clear serializer cache on scripting assembly reload
Added low-cost mechanism to invalidate the SerializerCache after domain reload
2023-11-06 18:49:30 -07:00
Wojtek Figat
b47420f232 Compact various source code chunks 2023-11-06 16:56:15 +01:00
Wojtek Figat
bfaa292b04 Fix invoking managed method on value types (eg. Transform) to properly handle instance value
#1801
2023-10-26 11:37:37 +02:00
Wojtek Figat
e4b89e1bad Fix plugins initialization order to properly unload scenes before them in cooked game 2023-10-14 16:20:27 +02:00
Wojtek Figat
74a69b8f13 Fix running game in non-ANSI path
#480
2023-10-12 22:29:48 +02:00
Wojtek Figat
af468ee6ae Fix scripting interop in AOT mode to use reflection-based field access 2023-10-11 15:18:28 +02:00
Wojtek Figat
ac542bf920 Fix FieldHelper.GetFieldOffset crash for classes with const fields (compile-time)
Inline call in `CreateScriptingObject` for perf
2023-10-10 20:52:12 +02:00
Wojtek Figat
18aafb6fc7 Fix regression from #1312 when passing structure from C++ to C# thunk as already boxed value 2023-10-05 11:35:52 +02:00