Commit graph

9051 commits

Author SHA1 Message Date
Thaddeus Crews
158f13aebf
Merge pull request #102232 from bruvzg/xattr
[FileAccess] Implement support for reading and writing extended file attributes/alternate data streams.
2025-11-25 09:52:37 -06:00
Thaddeus Crews
14185ef082
Merge pull request #113145 from bruvzg/align_fix
Fix memory alignment on 32-bit Windows.
2025-11-25 07:07:01 -06:00
Thaddeus Crews
6e69760134
Merge pull request #111967 from Ivorforce/object-cast-to-protect
Statically protect `Object::cast_to` for unrelated `Object` types.
2025-11-25 07:06:48 -06:00
Pāvels Nadtočajevs
51ff09dc1e
Fix memory alignment on 32-bit Windows. 2025-11-25 13:01:43 +02:00
Lukas Tenbrink
0f047944e4 Statically protect Object::cast_to for unrelated Object types.
Fix a handful of bugs associated with it.
2025-11-24 23:03:22 +01:00
Thaddeus Crews
369afc7b46
Merge pull request #86079 from dsnopek/required-args
Add `RequiredParam<T>` and `RequiredResult<T>` to mark `Object *` arguments and return values as required
2025-11-24 16:00:13 -06:00
Thaddeus Crews
f1de9c4845
Merge pull request #113117 from DarioSamo/resource-load-threaded-skip-progress
Skip ResourceLoader's progress query if not requested.
2025-11-24 16:00:11 -06:00
David Snopek
0820f32699 Update libgodot.h to use gdextension_interface.gen.h 2025-11-24 14:39:21 -06:00
David Snopek
090a4540b7 Use RequiredParam and RequiredResult in a handful of places in order to test 2025-11-24 12:12:10 -06:00
David Snopek
d95d49ee12 Add RequiredParam<T> and RequiredValue<T> to mark Object * arguments and return values as required
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
2025-11-24 12:12:09 -06:00
Dario
f0e57a727b Skip ResourceLoader's progress query if not requested. 2025-11-24 14:40:07 -03:00
Thaddeus Crews
02335fa126
Merge pull request #107845 from dsnopek/gdextension-interface-json
GDExtension: Store source of `gdextension_interface.h` in JSON
2025-11-24 10:21:36 -06:00
Thaddeus Crews
48887b3f2e
Merge pull request #99640 from Repiteo/scons/future-annotations-minimal
SCons: Integrate `annotations` where relevant
2025-11-24 10:21:34 -06:00
Thaddeus Crews
56d766a2a7
Merge pull request #113061 from Ivorforce/profile-alloc-fixes
Only call `GodotProfileAlloc` when the allocation actually happened.
2025-11-24 10:21:29 -06:00
Pāvels Nadtočajevs
d454e1a1e0
[FileAccess] Implement support for reading and writing extended file attributes/alternate data streams. 2025-11-24 11:18:25 +02:00
Thaddeus Crews
11fc998368
SCons: Integrate annotations where relevant
• Expand Ruff linter to catch & upgrade legacy type-hint syntax
2025-11-22 13:22:31 -06:00
Lukas Tenbrink
70b7b44e5c Only call GodotProfileAlloc when the allocation actually happened. 2025-11-22 17:40:54 +01:00
Yarvin
364e98afc5 Fix String::rfindn for strings with only one character.
----

Remove optimization – no need to introduce extra complexity for
negligible (if any) gains.
2025-11-22 16:52:55 +01:00
Thaddeus Crews
dca2986321
Merge pull request #112844 from bruvzg/cwd_error
Add error message when trying to load project from CWD.
2025-11-21 18:37:29 -06:00
Thaddeus Crews
25cc9ccefb
Merge pull request #112577 from timothyqiu/multiple-translations-per-locale
Add methods for querying loaded `Translation` instances
2025-11-21 18:37:24 -06:00
Thaddeus Crews
0e182ee83d
Merge pull request #112506 from RandomShaper/less_locky_cmd_queue
CommandQueueMT: Reduce contention + Fix race conditions
2025-11-21 14:46:52 -06:00
metamuffin
6145b0ca29
Add Image.load_exr_from_buffer and enable tinyexr by default 2025-11-21 18:58:26 +01:00
Pedro J. Estébanez
4ba4558cf6 CommandQueueMT: Reduce lock contention in cases of single flusher 2025-11-21 11:11:30 +01:00
Pedro J. Estébanez
b16a8b8a76 CommandQueueMT: Fix race conditions 2025-11-21 11:09:16 +01:00
Haoyu Qiu
ec860ffe4a Add methods for querying loaded Translation instances 2025-11-21 08:51:26 +08:00
Pāvels Nadtočajevs
a7358ddd12
Add error message when trying to load project from CWD. 2025-11-20 23:19:09 +02:00
Thaddeus Crews
8deb221829
Merge pull request #101247 from Ivorforce/string-find-cleanup
Clean up `String::find` and similar functions to remove duplicate code, and speed up comparison.
2025-11-20 11:10:58 -06:00
Thaddeus Crews
a79b155298
Merge pull request #112969 from ashwinvbs/bugfix
Fix bug where optional argument is not validated before use
2025-11-20 11:10:49 -06:00
Lukas Tenbrink
43a8009a56 Clean up String::find to remove duplicate code, and speed up comparison with memcmp where possible. 2025-11-19 22:39:05 +01:00
Ashwin Balasubramaniyan
6e047a0287 Fix bug where optional argument is not validated before use 2025-11-19 13:19:29 -05:00
Thaddeus Crews
b15a13eed3
Merge pull request #112607 from KoBeWi/what_could_have_gone_wrong🤷‍♂️
Add MeshInstance3D upgrade code
2025-11-18 14:00:50 -06:00
Thaddeus Crews
2c11facde0
Merge pull request #112853 from aaronp64/dictionary_error_key
Include key in `Dictionary::operator[]` error message
2025-11-18 08:25:47 -06:00
Thaddeus Crews
eafc21fb05
Merge pull request #112784 from migueldeicaza/fix_dynamic_xcframework_loading
iOS: Fix loading of xcframework dynamic libraries.
2025-11-18 08:25:45 -06:00
Haoyu Qiu
04ac5cbb89 Prevent the main locale from being set to an empty string 2025-11-18 10:07:35 +08:00
Thaddeus Crews
40cba9094f
Merge pull request #112823 from Ivorforce/tracy-unique-name
Fix `GodotProfileZone` with tracy backend failing with shadowed variable name warnings
2025-11-17 19:36:15 -06:00
kobewi
e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
Thaddeus Crews
910133fda6
Merge pull request #104280 from Ivorforce/span-equality
Add `Span` equality (`==` and `!=`) operators.
2025-11-17 10:56:55 -06:00
Thaddeus Crews
f4bb9eaafe
Merge pull request #112702 from enetheru/tracy-mem
Add memory profiling macros for tracy profiler option
2025-11-17 10:56:49 -06:00
Thaddeus Crews
187ab2161d
Merge pull request #112793 from timothyqiu/remove-translation-po
Remove `TranslationPO`
2025-11-17 10:56:35 -06:00
Thaddeus Crews
42f06f6d4d
Merge pull request #108170 from aaronfranke/test-ps-path-func
Use ProjectSettings path functions instead of hard-coded folder names in tests
2025-11-17 10:56:31 -06:00
Thaddeus Crews
359ef8fc2b
Merge pull request #108932 from Nazarwadim/hash_map_final_optimization
Do not zero elements and perform fast clear in `HashMap`
2025-11-17 10:56:27 -06:00
aaronp64
c18332740c Include key in Dictionary::operator[] error message
Include key in error message when lookup fails
2025-11-16 18:06:04 -05:00
Lukas Tenbrink
98caaebb72 Fix GodotProfileZone with tracy backend failing with shadowed variable names. 2025-11-15 20:03:14 +01:00
Lukas Tenbrink
d7f5c13db8 Add Span equality (== and !=) operators.
Exchange duplicate equality iteration implementations across `Vector` and `String` with the `Span` version, for a speed boost.
2025-11-15 14:21:54 +01:00
Haoyu Qiu
43e323dce5 Remove TranslationPO 2025-11-15 10:13:07 +08:00
Samuel Nicholas
fa5c17d68c Add memory profile macros to profiling with tracy implementation
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-11-15 10:20:31 +10:30
Miguel de Icaza
b1465d6af0 iOS: Fix loading of xcframework dynamic libraries.
The logic used to determine whether to invoke the in-memory registration or to
delegate the loading of a library is incorrect for xcframework packages - as
these can contain either static or dynamic libraries.

This change instead lets the operating system handle the library request, and if
it fails, it attempts to load from the internal registry.

With this change, xcframeworks containing dynamic libraries work without
workarounds on iOS.

With an additional fallback case courtesy of @bruvzg

This fixes https://github.com/godotengine/godot/issues/112783
2025-11-14 16:31:09 -05:00
Thaddeus Crews
c6fe923e33
Merge pull request #108516 from KoBeWi/file_graveyard
Remove unnecessary cpp files after cleanup
2025-11-14 14:23:06 -06:00
Thaddeus Crews
235d11245c
Merge pull request #112481 from stuartcarnie/2d_canvas_vbos
Massively optimize canvas 2D rendering by using vertex buffers
2025-11-14 14:23:02 -06:00
Thaddeus Crews
90413dacb4
Merge pull request #97758 from TsFreddie/debugger-stepout
Add step out to script debugger
2025-11-14 14:23:01 -06:00