1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-07 17:36:07 +00:00
Commit Graph

2542 Commits

Author SHA1 Message Date
Thaddeus Crews
0d88e17143 Merge pull request #105629 from aaronp64/list_sort
Reuse and optimize sorting logic for `List`, `SelfList`, and `HashMap`
2025-06-04 10:34:37 -05:00
Thaddeus Crews
46437d3c9f Merge pull request #82083 from ronyeh/typo
Remove unnecessary spaces.
2025-06-04 10:34:26 -05:00
aaronp64
6b2674fe18 Reuse and optimize sorting logic for List, SelfList, and HashMap
Added SortList class, and updated List, SelfList, and HashMap sort methods to use it.  Sorting is done with merge sort, with an initial check to optimize for already sorted lists, and sorted lists that were appended to.
2025-06-04 10:18:22 -04:00
Pāvels Nadtočajevs
617e12a6b4 [Windows] Drop support for Windows 7/8/8.1. 2025-05-30 17:30:23 +03:00
Thaddeus Crews
91b3a26438 Merge pull request #106848 from Faless/mp/rpc_config_revert
Expose `get_rpc_config` and `get_node_rpc_config`
2025-05-27 09:39:32 -05:00
Thaddeus Crews
66d20a24b4 Merge pull request #106008 from beicause/cs-byte-array-compress
C#: Expose byte array compress and decompress
2025-05-26 11:24:28 -05:00
Fabio Alessandrelli
c28d5d0058 Revert "Expose get_rpc_config and get_node_rpc_config"
This reverts commit 8835f326b1.
2025-05-26 15:57:38 +02:00
LuoZhihao
fc8328d5f1 C#: Expose byte array compress and decompress 2025-05-25 23:42:23 +08:00
Rémi Verschelde
25a3c27c41 Merge pull request #105628 from rsanchezsaez/apple/ios-visionos-4.5
Native visionOS platform support
2025-05-20 23:09:07 +02:00
Ricardo Sanchez-Saez
457299449d Introduce 'drivers/apple_embedded' abstract platform for code reuse 2025-05-19 15:37:13 -07:00
Thaddeus Crews
2bf7ac76cf Merge pull request #106456 from Repiteo/style/remove-DEBUG_METHODS_ENABLED
Style: Remove redundant `DEBUG_METHODS_ENABLED` macro
2025-05-19 08:01:35 -05:00
Thaddeus Crews
23321951d7 Merge pull request #106374 from YYF233333/opt_script_get_keyword
Improve `ScriptLanguage` get keyword API
2025-05-19 08:01:27 -05:00
Thaddeus Crews
d57050c66d Merge pull request #106502 from TCROC/fix-aot-crash
Fix crash on aot unloading
2025-05-19 08:01:26 -05:00
Yufeng Ying
1384e82c2c Improve ScriptLanguage get keyword API. 2025-05-17 18:43:19 +08:00
Travis Lange
15c684aad9 fix crash on aot unloading 2025-05-16 16:26:40 -04:00
Thaddeus Crews
d237e31a89 Style: Remove redundant DEBUG_METHODS_ENABLED
• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
2025-05-15 13:09:41 -05:00
Thaddeus Crews
b7c4f23203 Merge pull request #105819 from hexog/implicit-package-references
Mark referenced packages in SDK as implicitly defined
2025-05-15 10:22:25 -05:00
Joyless
14783cd8b8 Fix array span constructors 2025-05-13 13:28:00 +01:00
Rémi Verschelde
599a956f6f Merge pull request #106177 from eyalzus12/feature/stackalloc-Projection
C#: Use `stackalloc` to create the pivot arrays in `Projection.Inverse`
2025-05-13 01:05:00 +02:00
Rémi Verschelde
56937b8383 Merge pull request #105853 from youngminz/android-dotnet-skip-extraction
[.NET] Load assemblies directly from PCK on Android
2025-05-13 01:04:48 +02:00
Rémi Verschelde
b44aa1ad9d Merge pull request #105104 from Joy-less/use-frozen-dictionary
Use `FrozenDictionary` for `NamedColors`
2025-05-13 01:04:39 +02:00
Youngmin Koo
b99baa38f1 C#: Load assemblies directly from PCK on Android
Assemblies are now loaded directly from the PCK (`res://`) instead of
a cache directory. This prevents runtime failures that occurred when
the OS cleared cached files (e.g., under low storage), ensuring
the required assemblies are always available.
2025-05-12 19:31:44 +09:00
Juan Pablo Arce
3d7c4b8012 Fix 'Script class can only be set together with base class name' error with .NET typed collections upon rebuild 2025-05-10 03:09:39 -03:00
EyalZusiman
2ebfeef4a8 C#: use stackalloc to create the pivot arrays in Projection.Inverse 2025-05-08 18:27:32 +03:00
Fredrik Lindahl
01056f369a [.NET] Avoid heap allocation when using StringNames as key in a Collection.Dictionary.
Changed StringName GetHashCode to call godot_string_name.GetHashCode instead of godot_string_name's (which was not overridden) as this otherwise leads to heap allocations when e.g. calling the indexer in a Dictionary with `StringName` type as Key.
2025-05-08 08:41:22 +02:00
Thaddeus Crews
1cf573f44d Merge pull request #105887 from Repiteo/core/modernize-headers
Core: Modernize C headers with C++ equivalents
2025-05-02 09:25:29 -05:00
Thaddeus Crews
01fc9aee6c Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
Aaron Franke
a404b668a1 Change Node set_name to use StringName 2025-05-01 15:15:19 -07:00
Joyless
e9da0dfd30 Don't create unnecessary arrays in C# 2025-04-29 23:57:26 +01:00
Thaddeus Crews
c87f23ce7d Merge pull request #89324 from KoBeWi/pandora's_can_of_worms
Allow exporting variables of type Variant
2025-04-28 10:01:33 -05:00
Egor Nikulin
976e60ea24 Mark referenced packages in SDK as implicitly defined
Should improve package manager behavior
and fix errors in solutions using CPM.

https://github.com/NuGet/Home/issues/13529
https://github.com/dotnet/sdk/pull/43151/files#r1746148520
2025-04-27 14:00:55 +04:00
Thaddeus Crews
28089c40c1 Merge pull request #91006 from reduz/live-backtrace
Ability to print and log script backtraces
2025-04-24 17:18:52 -05:00
reduz
d1dcb40d56 Ability to print and log script backtraces
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2025-04-24 18:54:41 +02:00
Lukas Tenbrink
91fe434a86 Always use String as StringName backing internally. 2025-04-23 14:57:03 +02:00
LuoZhihao
b0348d0e58 C#: Avoid StringName allocation in GodotObject.Free 2025-04-17 20:10:34 +08:00
Thaddeus Crews
fa5dd77566 Merge pull request #105262 from raulsntos/dotnet/android-no-copy
[.NET] Add a preload hook to load .NET assemblies from the APK
2025-04-15 12:28:40 -05:00
Thaddeus Crews
561dc6ced6 Merge pull request #104689 from Delsin-Yu/csharp-getset-alloc-perf
[.Net] Avoid unnecessary StringName allocations on not implemented virtual _Get and _Set method call
2025-04-14 19:39:53 -05:00
Paul Joannon
88191b0b15 Fix extraction of C# default property values when negative 2025-04-13 17:57:20 +02:00
DE-YU_H14
f0ec392bb1 [.Net] Avoid StringName allocations if type does not defines _Get or _Set 2025-04-12 03:39:24 +08:00
Zae
e8311840e4 [.NET] Fix string.PathJoin to be consistent with core 2025-04-11 23:21:29 +08:00
Thaddeus Crews
98c204a8f0 Merge pull request #104828 from van800/rider_fleet
C#: Separate Rider and Fleet options as external editors
2025-04-11 09:51:13 -05:00
Ivan Shakhov
45a07c1ab9 split Rider and Fleet as different external editors for Godot C#
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-04-11 13:21:50 +02:00
Priahoud
bf963e767e Add Options, Functions and Settings to convert Node-Names and Strings to kebab-case
- refactored and renamed String::_camelcase_to_underscore to String:_separate_compound_words
- refactored String::to_snake_case to work with the refactored String::_separate_compound_words
- created char_utils::is_hyphen to catch all hyphen variants in kebab-case conversion
- created String::to_kebab_case using the new String::_separate_compound_words
- created corresponding Documentation in String and StringName
- simplified both switch statements in EditorNode and ProjectDialog
- added new kebab-casing Option for Node Names in ProjectSettings
- added missing camelCase Options to Scene- and Node-Names in ProjectSettings
- simplified Mono RuntimeInterop Functions
- hooked up the ConnectionsDialog
- created additional Unit Tests
2025-04-10 21:22:21 +02:00
Raul Santos
b941c2d013 [.NET] Add a preload hook to load .NET assemblies from the APK
Avoids using assemblies extracted to a temporary directory in Android.
2025-04-10 21:10:51 +02:00
A Thousand Ships
889410dcda Add String::replace_char(s) methods for performance and convenience 2025-04-10 13:08:45 +02:00
kobewi
13741ff913 Add FoldableContainer
Co-authored-by: WhalesState <whalesstate@gmail.com>
2025-04-08 22:27:32 +02:00
Joyless
f7f6e5ee21 Use FrozenDictionary 2025-04-06 20:13:02 +01:00
DE YU
af67fb1f62 Avoid array allocation when signal have 0 arg 2025-04-06 16:02:35 +08:00
Yufeng Ying
7a1a970c25 size() <= 0 and size() < 1. 2025-04-02 19:18:44 +08:00
Yufeng Ying
4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00