summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2020-03-09Merge pull request #36751 from Faless/debugger/threads_and_profilersRémi Verschelde
ScriptDebugger refactor, threading, profilers.
2020-03-08Fix missing module editor iconsAndrii Doroshenko (Xrayez)
Module icons need to be renamed to PascalCase as well for them to be registered in 4.0. See godotengine/godot#36513.
2020-03-08Refactor ScriptDebugger.Fabio Alessandrelli
EngineDebugger is the new interface to access the debugger. It tries to be as agnostic as possible on the data that various subsystems can expose. It allows 2 types of interactions: - Profilers: A subsystem can register a profiler, assigning it a unique name. That name can be used to activate the profiler or add data to it. The registered profiler can be composed of up to 3 functions: - Toggle: called when the profiler is activated/deactivated. - Add: called whenever data is added to the debugger (via `EngineDebugger::profiler_add_frame_data`) - Tick: called every frame (during idle), receives frame times. - Captures: (Only relevant in remote debugger for now) A subsystem can register a capture, assigning it a unique name. When receiving a message, the remote debugger will check if it starts with `[prefix]:` and call the associated capture with name `prefix`. Port MultiplayerAPI, Servers, Scripts, Visual, Performance to the new profiler system. Port SceneDebugger and RemoteDebugger to the new capture system. The LocalDebugger also uses the new profiler system for scripts profiling.
2020-03-08Threaded networking for editor debugger.Fabio Alessandrelli
2020-03-06Merge pull request #36842 from Phischermen/mono-resource-loader-extension-updateRémi Verschelde
Mono/C#: Add missing parameters to 'ResourceLoader.Load<T>()'
2020-03-06Added parameters to Load()Phischermen
2020-03-05Mono: Fix detection of Apple platforms in build scriptRémi Verschelde
2020-03-04Merge pull request #36657 from van800/rpl3Rémi Verschelde
On Windows find Rider installed for CurrentUser
2020-03-02Fix missing null check in Mono Binding of GD.printRaul Santos
2020-02-28On Windows find Rider installed for CurrentUserIvan Shakhov
2020-02-28Removed interactive loader, added proper thread loading.Juan Linietsky
2020-02-28Merge pull request #36556 from RandomShaper/rework_mutexRémi Verschelde
Reimplement `Mutex` with C++'s `<mutex>` (plus more)
2020-02-27Merge pull request #36602 from van800/jetbrains_msbuildRémi Verschelde
Allow using Rider MSBuild on Windows, when Rider is selected as external editor
2020-02-27use Rider MSBuild on Windows, when Rider is selected as external editorIvan Shakhov
2020-02-27Support toolbox custom "Tools install location", by reading .settings.jsonIvan Shakhov
2020-02-26Reimplement Mutex with C++'s <mutex>Pedro J. Estébanez
Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`.
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-21Huge Debugger/EditorDebugger refactor.Fabio Alessandrelli
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-18doc: Sync classref with current sourceRémi Verschelde
Handle removal of Pool*Array types and other recent changes.
2020-02-18Mono: Fix build after ObjectID and Texture2D changesRémi Verschelde
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-15Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky
2020-02-13Remove more deprecated methods and codeRémi Verschelde
2020-02-13Remove deprecated sync and slave networking keywordsRémi Verschelde
Those keywords were deprecated for 3.1 in #22087. Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
2020-02-12Fix Mono and GDNative builds after changes to ObjectIDRémi Verschelde
Issues caused by cf8c679a23b21d6c6f29cba6a54eaa2eed88bf92. The Mono change is actually a bugfix (used the int instead of ObjectID by mistake). The GDNative change is a temporary revert until a more exhaustive approach is taken to make 'godot_int' 64-bit, is confirmed wanted by GDNative users.
2020-02-12Optmized data sent during RPC and RSet calls.Andrea Catania
- Now is sent the method ID rather the full function name. - The passed IDs (Node and Method) are compressed so to use less possible space. - The variant (INT and BOOL) is now encoded and compressed so to use much less data. - Optimized RPCMode retrieval for GDScript functions. - Added checksum to assert the methods are the same across peers. This work has been kindly sponsored by IMVU.
2020-02-10[Mono] Basis/Transforms Array operator comments and improvementsAaron Franke
The behavior for Basis and Transform2D is unchanged, and Transform gets new behavior. All of the behavior is identical to GDScript's behavior.
2020-02-09Merge pull request #35649 from aaronfranke/color-unsignedRémi Verschelde
Use uint/ulong for Color in C#
2020-02-09Merge pull request #36013 from raulsntos/fix-issubsequenceofRémi Verschelde
Avoid going out of bounds in IsSubsequenceOf
2020-02-08Avoid going out of bounds in IsSubsequenceOfRaul Santos
Closes #35598
2020-02-08Remove do{ } while(0) wrapper around error macros.Marcel Admiraal
As pointed out by Faless, a do{ } while(0) wrapper around a continue or break just ends the do{ } while(0) loop. The do{ } while(0) loop exists to enable the macro to be used as a function which requires a semicolon. The alternative approach is to use an if(1) { } else ((void)0) wrapper. Since the macro already has an if(unlikely(m_cond)) { } this patch simply adds the else ((void)0) to this if statement instead. For consistency all the macros have been updated in the same way, and trailing else warnings corrected. However, the wrappers around ERR_PRINT and WARN_PRINT were removed, because they generated too many ambiguous trailing else warnings. They are also single line macros so a wrapper is not needed.
2020-02-07Remove the last ERR_PRINTS that was missed by #33391unknown
2020-02-05Remove duplicate WARN_PRINT macro.Marcel Admiraal
2020-02-05Remove duplicate ERR_PRINT macro.Marcel Admiraal
2020-01-29Fixed GetNodeOrNull<T>Fabián L
GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
2020-01-29Use uint/ulong for Color in C#Aaron Franke
2020-01-24Merge pull request #35527 from neikeq/issue-35259Rémi Verschelde
Mono/C#: Fix _update_exports possible crash with Reference types
2020-01-24Merge pull request #35524 from neikeq/issue-35496Rémi Verschelde
Fix C# preprocessor infinite loop and incorrect parsing of `#if!`
2020-01-24Mono/C#: Fix _update_exports possible crash with Reference typesIgnacio Etcheverry
The code was attempting to dynamic cast the native instance to Reference after the managed instance was disposed. As the managed instance acts as a Ref, the native instance was freed during that disposal. This made the dynamic cast fail and we attempted to memdelete a second time. The fix is to make the dynamic cast before disposal.
2020-01-24Fix C# preprocessor infinite loop and incorrect parsing of `#if!`Ignacio Etcheverry
2020-01-23Merge pull request #35491 from neikeq/issue-35450Rémi Verschelde
Mono/C#: Lighten up unsafe reference checks
2020-01-23Mono/C#: Lighten up unsafe reference checksIgnacio Etcheverry
Because of the weird case with multi-threading and ResourceLoader, it can be the case that a resource is GCed while being referenced again in the main thread. In such cases, a new unsafe reference is created before the finalizer thread removes the previous one.
2020-01-23Merge pull request #35478 from neikeq/issue-32260Rémi Verschelde
Mono/C#: Add setting to include I18N assemblies in the exported game
2020-01-23Mono/C#: Add setting to include I18N assemblies in the exported gameIgnacio Etcheverry
2020-01-23Merge pull request #35473 from neikeq/default-to-net47Rémi Verschelde
Mono/C#: Default to net47 for new projects
2020-01-23Mono/C#: Add Basis.Slerp, update Quat.Xform and add some math checksIgnacio Etcheverry
2020-01-23Mono/C#: Default to net47 for new projectsIgnacio Etcheverry
2020-01-21Make script class parser errors to not abort the buildIgnacio Etcheverry
As our script class parser is error prone, we should not impede the build from continuing because of a parsing error. This should be reverted in the future once we switch to Roslyn.
2020-01-21Add dummy preprocessor for the C# script class parserIgnacio Etcheverry
No attempts are made at conditional compilation. The main if branch is always assumed to be true.