Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-08-22 | C#: Re-write Array, Dictionary, NodePath, String icalls as P/Invoke | Ignacio Roldán Etcheverry | |
2022-08-22 | C#: Remove DynamicGodotObject/Object.DynamicObject | Ignacio Roldán Etcheverry | |
We are moving in the direction of no dynamic code generation, so this is no longer desired. The feature can still be easily implemented by any project that still want it. | |||
2022-08-22 | C#: Move marshaling logic and generated glue to C# | Ignacio Roldán Etcheverry | |
We will be progressively moving most code to C#. The plan is to only use Mono's embedding APIs to set things at launch. This will make it much easier to later support CoreCLR too which doesn't have rich embedding APIs. Additionally the code in C# is more maintainable and makes it easier to implement new features, e.g.: runtime codegen which we could use to avoid using reflection for marshaling everytime a field, property or method is accessed. SOME NOTES ON INTEROP We make the same assumptions as GDNative about the size of the Godot structures we use. We take it a bit further by also assuming the layout of fields in some cases, which is riskier but let's us squeeze out some performance by avoiding unnecessary managed to native calls. Code that deals with native structs is less safe than before as there's no RAII and copy constructors in C#. It's like using the GDNative C API directly. One has to take special care to free values they own. Perhaps we could use roslyn analyzers to check this, but I don't know any that uses attributes to determine what's owned or borrowed. As to why we maily use pointers for native structs instead of ref/out: - AFAIK (and confirmed with a benchmark) ref/out are pinned during P/Invoke calls and that has a cost. - Native struct fields can't be ref/out in the first place. - A `using` local can't be passed as ref/out, only `in`. Calling a method or property on an `in` value makes a silent copy, so we want to avoid `in`. REGARDING THE BUILD SYSTEM There's no longer a `mono_glue=yes/no` SCons options. We no longer need to build with `mono_glue=no`, generate the glue and then build again with `mono_glue=yes`. We build only once and generate the glue (which is in C# now). However, SCons no longer builds the C# projects for us. Instead one must run `build_assemblies.py`, e.g.: ```sh %godot_src_root%/modules/mono/build_scripts/build_assemblies.py \ --godot-output-dir=%godot_src_root%/bin \ --godot-target=release_debug` ``` We could turn this into a custom build target, but I don't know how to do that with SCons (it's possible with Meson). OTHER NOTES Most of the moved code doesn't follow the C# naming convention and still has the word Mono in the names despite no longer dealing with Mono's embedding APIs. This is just temporary while transitioning, to make it easier to understand what was moved where. | |||
2022-08-20 | Merge pull request #64170 from YuriSizov/docs-annotations-in-technicolor | Max Hilbrunner | |
Add documentation for all annotations | |||
2022-08-19 | Merge pull request #64334 from YuriSizov/core-bind-property-revert-methods | Yuri Sizov | |
Make `property_*_revert` methods multilevel and expose them for scripting | |||
2022-08-19 | Add documentation for all annotations | Yuri Sizov | |
2022-08-19 | Merge pull request #63326 from MewPurPur/binary-highlighting-fix | Max Hilbrunner | |
Fix highlighting of multiple operators | |||
2022-08-18 | Merge pull request #64156 from bruvzg/sys_msdf | Clay John | |
Allow MSDF rendering for system fonts, fix crash on loading damaged / unsupported font files. | |||
2022-08-18 | Make `property_*_revert` methods multilevel and expose them for scripting | Yuri Sizov | |
2022-08-15 | Improve the `make_rst.py` parser for BBCode tags | Yuri Sizov | |
2022-08-14 | Document GLTFLight and GLTFSpecGloss | Aaron Franke | |
2022-08-14 | Improve binary operator highlighting | VolTer | |
2022-08-10 | Merge pull request #62934 from Xwdit/script_doc_arg_def_var | Rémi Verschelde | |
2022-08-10 | Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_type | Rémi Verschelde | |
2022-08-10 | Merge pull request #63020 from Xwdit/fix_gds_editor_tooltip_return_type | Rémi Verschelde | |
2022-08-10 | Merge pull request #64169 from hakro/fix-gltf-animations-always-imported | Rémi Verschelde | |
2022-08-10 | Fix script documentation method argument default values | Xwdit | |
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com> | |||
2022-08-10 | Fixed incorrect type display of function argument in GDScript editor tooltips | Xwdit | |
2022-08-10 | Fixed incorrect type display of void return in GDScript editor tooltips | Xwdit | |
2022-08-10 | Merge pull request #64206 from Chaosus/gds_fix | Rémi Verschelde | |
2022-08-10 | Merge pull request #64188 from YeldhamDev/gridmap_item_fix | Rémi Verschelde | |
2022-08-10 | Prevent AnimationPlayer from being added on GLTF import if the option is ↵ | Hakim | |
unchecked. Fixes #63954 | |||
2022-08-10 | Prevent global functions from overriding completion of subscript | Yuri Rubinsky | |
2022-08-09 | Fix error when switching to another `GridMap` with an item with higher index ↵ | Michael Alexsander | |
selected | |||
2022-08-09 | Allow MSDF rendering for system fonts, fix crash on loading damaged / ↵ | bruvzg | |
unsupported font files. | |||
2022-08-09 | vector4 distance_squared_to and update csharp | antonWetzel | |
2022-08-08 | Merge pull request #64099 from A-Lamia/lsp_uri_path_fixes | Rémi Verschelde | |
2022-08-08 | Rename the argument tag to param in XML documentation | Yuri Sizov | |
2022-08-08 | Merge pull request #64076 from raulsntos/doc-fixes | Rémi Verschelde | |
Add `@GDScript.type_exists` documentation, Fix typo in weakref documentation | |||
2022-08-08 | Merge pull request #64004 from YuriSizov/doctool-fail-on-unnamed-args | Rémi Verschelde | |
Add checks and tests for empty/unnamed arguments | |||
2022-08-08 | Merge pull request #63932 from smix8/navigation_heightmapshape_baking_4.x | Rémi Verschelde | |
2022-08-08 | Add `@GDScript.type_exists` documentation | Raul Santos | |
2022-08-08 | Add tests for empty/unnamed arguments to ClassDB, Variant, GDScript | Yuri Sizov | |
2022-08-08 | fix: modifies workspace->root_uri so that p_uri is symmetrical to other ↵ | Lamia | |
operating systems. #63388 | |||
2022-08-08 | Merge pull request #64085 from raulsntos/fix-rider-check | Rémi Verschelde | |
2022-08-08 | Merge pull request #64046 from ↵ | Rémi Verschelde | |
AntonioDell/bugfix/63715-infer-preloaded-const-types | |||
2022-08-08 | Avoid paths with invalid characters in `IsRider` | Raul Santos | |
2022-08-07 | Various fixes to C# documentation | Raul Santos | |
2022-08-07 | fix(gdscript): Infer type from preload const | Antonio Dell'Annunziata | |
When resolving the type of the attribute from the variant, the result_type.kind was overritten for no reason. It is assumed that this only needs to be done, if the variant value is not valid to have any kind here. Solves #63715 | |||
2022-08-07 | Merge pull request #63919 from Faless/scons/4.x_easy_deps | Rémi Verschelde | |
2022-08-07 | [MP] Cleanup and fixes for replication plugin. | Fabio Alessandrelli | |
- Remove dead code. - Fix "Add from path" adding the wrong string when targeting root node. | |||
2022-08-07 | [Websocket] Remove dummy JS server implemenation. | Fabio Alessandrelli | |
It does nothing but printing errors (only websocket client is available in browsers), so we might as well return null when you instantiate it. | |||
2022-08-06 | Merge pull request #63712 from object71/fix-export-issues | Rémi Verschelde | |
2022-08-06 | Merge pull request #63976 from aaronfranke/godots-own-comment-lines | Rémi Verschelde | |
2022-08-06 | Merge pull request #63762 from bruvzg/ft_warn | Rémi Verschelde | |
[TextServer] Add a build warning when building with external FreeType without Brotli support. | |||
2022-08-06 | Merge pull request #63871 from bruvzg/ts_build_options | Rémi Verschelde | |
Add Text Server related options to the build profiles editor. | |||
2022-08-05 | Make "Godot source files" comment consistent in modules | Aaron Franke | |
2022-08-05 | [Text Server] Prevent composite glyphs which incorporate kashida from being ↵ | bruvzg | |
used for justification. Update TextServer tests to clean up on fail. | |||
2022-08-05 | Add NavigationMesh baking for HeightMapShape | smix8 | |
Adds HeightMapShape for StaticColliders and GridMap to the NavigationMeshGenerator for baking NavigationMesh. | |||
2022-08-05 | Merge pull request #59844 from Calinou/rename-shader-param-methods | Rémi Verschelde | |