1
0
Fork 0
Commit Graph

9080 Commits

Author SHA1 Message Date
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
Thaddeus Crews c52c93e2a2
Merge pull request #112725 from Ivorforce/profiling-comments
Add some comments in the profiling.h header.
2025-11-14 14:22:53 -06:00
Stuart Carnie 90c0e6acca 2D: Switch to VBOs for instance data
- Add support for vertex bindings and UMA vertex buffers in D3D12.
- Simplify 2D instance params and move more into per-batch data to save
  bandwidth

Co-authored-by: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
Co-authored-by: A Thousand Ships <96648715+athousandships@users.noreply.github.com>
2025-11-15 06:25:49 +11:00
Benjamin Dobell 5ac0a57b32 Android: Improve D-pad support for Default Android Gamepad.
Previously the default gamepad wasn't actually setup to handle
regular D-pad keycode events. Instead it had only been hooked up
to hat inputs. Many bluetooth controllers paired with recent
Android versions fire keycode events for their D-pad.
2025-11-15 00:47:05 +11:00
Nazarii e6bc3fa164 Do not zeroed elements and fast clear in HashMap 2025-11-14 11:33:13 +02:00
Thaddeus Crews 52e7b970af
Merge pull request #111681 from Nintorch/joypad-led
Add support for setting a joypad's LED light color
2025-11-13 20:52:07 -06:00
Thaddeus Crews 9a9e64a6ee
Merge pull request #108981 from DeeJayLSP/faster-uid-path-from-cache
Make getting a path from UID cache slightly faster
2025-11-13 17:43:00 -06:00
kobewi 251746a89c Add MeshInstance3D upgrade code 2025-11-13 13:43:17 +01:00
Lukas Tenbrink 9ebe051d5c Add some comments in the profiling.h header. 2025-11-13 12:14:41 +01:00
Thaddeus Crews 08fb2e61e7
Merge pull request #111503 from JestemStefan/fix_111176
Fix `Input.is_joy_known` response for SDL joypads
2025-11-12 17:26:22 -06:00
Lukas Tenbrink 6b98a57b8e Fix tracy implementation when no callstack sampling is desired. 2025-11-12 20:51:04 +01:00
Thaddeus Crews df51b1480d
Merge pull request #112660 from aaronfranke/list-find-const
Add a const version of `List::find`
2025-11-12 11:24:16 -06:00
Thaddeus Crews 04bc282ae7
Merge pull request #104851 from Ivorforce/tracy
Add `profiler` option to `SCons` builds, with support for `tracy` and `perfetto`.
2025-11-12 11:24:15 -06:00
Thaddeus Crews c9ef31360f
Merge pull request #112657 from stuartcarnie/rid_alloc_owns_lockfree
Core: Switch `RID_Alloc::owns` to lock-free
2025-11-12 11:24:14 -06:00
Thaddeus Crews 6678288490
Merge pull request #111909 from bruvzg/mods_are_bad_they_make_you_mad
Disable some unsafe CLI arguments in template builds by default.
2025-11-12 11:24:12 -06:00
Aaron Franke 6f207a4601
Add a const version of List::find 2025-11-12 00:36:09 -08:00
Stuart Carnie bdfe8549b8 Core: Switch `RID_alloc::owns` to lock-free 2025-11-12 15:17:45 +11:00
Nintorch a55242747a Add support for joypad LED lights 2025-11-12 06:01:03 +05:00
JestemStefan 3f98a5472d Fix Input.is_joy_known response for SDL joypads 2025-11-11 23:23:46 +01:00
Thaddeus Crews 180ccae934
Merge pull request #111707 from Nintorch/joypad-features
Support adding advanced joypad features
2025-11-11 16:07:56 -06:00
Thaddeus Crews 18a17de164
Merge pull request #112630 from aaronp64/push_back_move
Avoid extra copy in `Vector`/`CowData` `push_back`/`insert`
2025-11-11 16:07:54 -06:00
David Snopek 2c681794cd GDExtension: Store source of `gdextension_interface.h` in JSON 2025-11-11 14:58:45 -06:00
aaronp64 afd59b36cf Avoid extra copy in Vector/CowData push_back/insert
Update push_back/insert methods to move new item into CowData instead of copying
2025-11-11 12:19:35 -05:00
Thaddeus Crews 8327dfa215
Merge pull request #112092 from timothyqiu/ts-nums
Move localized number formatting methods to `TranslationServer`
2025-11-10 17:47:09 -06:00
kobewi 98141c3d73 Replace repetitive meta/ctrl condition with a method 2025-11-10 16:23:28 +01:00
Thaddeus Crews a6db8aa621
Merge pull request #111597 from HolonProduction/code-edit-dirty-flag
CodeEdit: Use flag to recalculate characteristics
2025-11-10 08:20:22 -06:00
Thaddeus Crews 9ac55bcc7f
Merge pull request #112415 from timothyqiu/project-name-localized
Allow localizing the application name with project translations
2025-11-10 08:20:00 -06:00
Thaddeus Crews 32242dbe4d
Merge pull request #112026 from timothyqiu/plural-default
Use more practical default plural rules
2025-11-10 08:19:58 -06:00
Haoyu Qiu 72d437c030 Move localized number formatting methods to TranslationServer
Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-11-10 15:01:22 +08:00
Haoyu Qiu b8a8f8b35a Allow localizing the application name with project translations 2025-11-08 13:06:55 +08:00
Lukas Tenbrink c3747884da Add some important profiling hooks. 2025-11-08 00:08:48 +01:00
Lukas Tenbrink e80194e31f Add `profiler` option to `SCons` builds.
Add `tracy` option to `profiler`. If set, a tracy profiling client will be injected into the Godot binary.

# Conflicts:
#	platform/linuxbsd/godot_linuxbsd.cpp
2025-11-08 00:08:45 +01:00
Thaddeus Crews 6fd949a6dc
Merge pull request #110748 from MauriceButler/project-setting-changed-signal
Add ability to get list of Project Settings changed, similar to Editor Settings functionality
2025-11-07 10:32:39 -06:00
Maurice Butler ffa2651fbc Added ability to get a list of project settings changed. 2025-11-06 20:15:07 +10:00
kobewi 89432600ce Misc script editor code cleanup 2025-11-05 18:18:33 +01:00
David Snopek bc9f3c7d92 Make Vector<T>::duplicate() const
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2025-11-04 17:13:11 -06:00
David Snopek fc58be9bfc GDExtension: Add system for builtin method compatibility 2025-11-04 17:12:31 -06:00
Thaddeus Crews d845f0960d
Merge pull request #112351 from charjr/fix-array-remove-at
GDExtension: Add missing method flag
2025-11-04 16:32:51 -06:00
Thaddeus Crews cef4a7805f
Merge pull request #111772 from nikitalita/fix-fmem-integer-underflow
Fix buffer over-read in `FileAccessMemory::get_buffer`
2025-11-04 16:32:29 -06:00
Thaddeus Crews 0d89d2fb82
Merge pull request #112149 from timothyqiu/csv-template
Add CSV translation template generation
2025-11-04 16:32:26 -06:00
John Charman c342ce423c GDExtension: Add missing method flag
Add GDEXTENSION_METHOD_FLAG_VIRTUAL_REQUIRED
2025-11-04 18:44:11 +00:00
Pāvels Nadtočajevs 29da94290f
Disable some unsafe CLI arguments in template builds by default. 2025-11-03 12:21:42 +02:00
nikitalita 3fa73d4f5f FileAccessMemory: prevent seeking past end of file 2025-11-02 12:40:51 -08:00
kobewi d27fb9b15a Remove default skeleton path in MeshInstance3D 2025-11-01 01:59:58 +01:00
Thaddeus Crews ae9732139a
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
Thaddeus Crews 416ba9a1c6
Merge pull request #109517 from precup/speedy-signal-disconnect
Speed up signal disconnects in the editor
2025-10-30 10:45:56 -05:00
Thaddeus Crews eaa80e62a8
Merge pull request #108076 from timothyqiu/resource-loader-unused
Remove unused methods in `ResourceLoader`
2025-10-30 10:45:55 -05:00
Haoyu Qiu ea9a2c3b2c Add CSV translation template generation 2025-10-30 08:44:41 +08:00
Haoyu Qiu c885098266 Remove unused methods in `ResourceLoader` 2025-10-30 08:13:20 +08:00
Aaron Franke cc13a376c5
Handle NaN and Infinity in JSON stringify function
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-10-29 12:06:40 -07:00
Thaddeus Crews 881058009f
Merge pull request #111522 from Repiteo/core/to-from-native
Core: Support `INF`/`NAN` in JSON from/to native
2025-10-29 13:13:48 -05:00
Thaddeus Crews a0cde1e151
Merge pull request #112129 from DeeJayLSP/asetget
`ClassDB`: Use `AHashMap` for `property_setget` and `constant/signal_map`
2025-10-29 13:13:47 -05:00
DeeJayLSP a149280cea `ClassDB`: Use `AHashMap` for `property_setget` and `constant/signal_map` 2025-10-28 16:24:54 -03:00
Thaddeus Crews ed751529bc
Merge pull request #112094 from mihe/apple-stack-size
Increase stack size for all secondary threads on Apple platforms
2025-10-28 12:19:36 -05:00
Thaddeus Crews 3cd6b3f8c6
Merge pull request #111674 from bruvzg/pck_virt_addr_4
Update embedded PCK virtual address.
2025-10-28 10:15:35 -05:00
Thaddeus Crews 5c9333073a
Merge pull request #111696 from StarryWorm/langtable-include
Fix missing includes in headers
2025-10-27 10:01:51 -05:00
Thaddeus Crews 5a257a904a
Merge pull request #112073 from timothyqiu/make-csv-great-again
Improve CSV translations
2025-10-27 10:01:50 -05:00
Thaddeus Crews 08db7ddf2f
Merge pull request #110245 from Armynator/add-min-gui-drag-distance
Make minimum drag distance configurable for gui elements
2025-10-27 10:01:41 -05:00
Mikael Hermansson b320a6569e Increase stack size for all secondary threads on Apple platforms 2025-10-27 12:49:35 +01:00
Haoyu Qiu c1ee8e52e4 Improve CSV translations
- Adds context and plural support
- Adds unescape import options
- Better document OptimizedTranslation

Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-10-27 17:47:45 +08:00
StarryWorm 796281f62f Add missing includes
Add missing <winnt.h> include in windows/lang_table.h
Add missing typedefs.h and rid.h include in godot_constraint_3d.h
Add missing <type_traits> include in iterable.h
Add missing forward declarations in rendering_shader_library.h
2025-10-26 18:25:17 -04:00
Lukas Tenbrink 65bf516006 Fix `memnew_placement` with `char *` arguments. Before, it would call the description version, allocating on the heap instead of ni the given memory. 2025-10-25 18:50:22 +02:00
Haoyu Qiu d180b9af9f Use more practical default plural rules 2025-10-25 15:50:20 +08:00
Aaron Franke 3c5df91a90
Use ProjectSettings functions instead of hard-coded folder name in tests 2025-10-24 20:24:50 -07:00
hannes 89aa5137b8 add gui_drag_threshold for viewports 2025-10-24 19:01:25 +02:00
Fredia Huya-Kouadio 5277c94fe4 Update the source sets configuration for the `app` and `lib` modules to match the default configuration
Both the `app` and `lib` modules had custom source sets configuration originating from the early days of the project. This updates the configuration to match the default Android Studio configuration which will simplify the addition of unit tests and instrumented tests to the project.

Note that for backcompat reasons, some folders (such as the `res` folder in the `app` module) are left as is.
2025-10-24 07:44:19 -07:00
Thaddeus Crews 06bdfa5a16
Merge pull request #110478 from beicause/opt-node-path-to-string
Optimize NodePath to String by using cached path
2025-10-23 11:03:53 -05:00
Mike Precup abfc63b483 Speed up signal disconnects in the editor 2025-10-22 22:27:25 -07:00
Thaddeus Crews 37764110f6
Merge pull request #110271 from BlueCube3310/image-conv-opti-incompatible
Image: Optimize manual format conversion
2025-10-22 13:48:46 -05:00
Thaddeus Crews 38e20331c8
Merge pull request #107303 from passivestar/close-dialog-action
Add support for closing dialog windows with Cmd+W on macOS
2025-10-22 13:48:36 -05:00
Thaddeus Crews 1b84fe745b
Merge pull request #110308 from BlueCube3310/image-mip-renorm-fix
Image: Fix normalization of mipmaps for half and float formats
2025-10-22 13:48:35 -05:00
BlueCube3310 4266a4e4eb Image: Fix normalization of mipmaps for half and float formats 2025-10-22 15:03:57 +02:00
devloglogan 1a8306bbc1 Allow custom monitors to select desired type 2025-10-22 07:31:44 -05:00