Commit Graph

66846 Commits

Author SHA1 Message Date
George L. Albany
859eefd203 Merge pull request #931 from Spartan322/4.3.1-cherry-pick/bugs-core
[4.3] Cherry-picks for the 4.3 (4.3.1) branch - 1st core bugs batch
2025-01-18 17:51:13 +00:00
George L. Albany
66372fa825 Merge pull request #933 from Spartan322/4.3.1-cherry-pick/enhancements
[4.3] Cherry-picks for the 4.3 (4.3.1) branch - 1st enhancements batch
2025-01-18 17:50:43 +00:00
George L. Albany
d827275334 Merge pull request #932 from Spartan322/4.3.1-cherry-pick/bugs-buildsystem
[4.3] Cherry-picks for the 4.3 (4.3.1) branch - 1st buildsystem bugs batch
2025-01-18 17:50:23 +00:00
HP van Braam
907619a347 Optimize Thread::get_caller_id()
By making sure that Thread always has a valid caller_id we can remove the
check making the function a straightforward getter instead.

In some quick tests we see a repeatable performance improvement of
somewhere around 0.32 mspf in TPS demo.

Co-authored-by: Pedro J. Estébanez <pedrojrulez@gmail.com>
(cherry picked from commit 873eb21ce8)
2025-01-18 11:16:29 -05:00
HP van Braam
0087672557 Don't set Variant::Type in destructor
When profiling Dome Keeper, I found that in physics_process a HashMap
gets cleared a lot, which ends up calling the Variant destructor.
Calling Variant::clear() dominates this operation.

By not uselessly setting the Type to NIL on destruction we save about
50% of time. This is likely because if there is a simple type in the
Variant that doesn't need destructing, but now we write when we should
just drop the Variant altogether.

Since the value of Variant::type should be unobservable after
destruction this doesn't change any outward behavior.

(cherry picked from commit 46c23e1758)
2025-01-18 11:16:28 -05:00
HP van Braam
d30d5dec2b Unconditionally use env.Decider("MD5-timestamp")
It seems that we are only enabling this option together with unsafe
build determinators. However it seems that MD5-timestamp by itself is
not unsafe.

MD5-Timestamp works by first checking the timestamp of a file, comparing
it to the scons database and if it does not match it will do an md5sum
to determine if the file needs rebuilding.

Without this option SCons will always create md5sums of every file. In
the case of a null build this is 50% of the time.

(cherry picked from commit 04fff3fe0d)
2025-01-18 11:16:28 -05:00
Rémi Verschelde
b81310065b Linux: Relax interdependency between freetype, libpng, and zlib for unvendored builds
This restriction was added to fix #7373 back then, which was a symbol conflict
between FreeType's bundled copy of gzip/zlib, and distro packages.

But we also unbundled FreeType's zlib in #69395 so this is no longer an issue.

On the other hand recent issues pointed out that using system-provided icu4c
or harfbuzz can cause issues (#91401, #100301). We still allow it for now but
raise a warning.

(cherry picked from commit 7fe0609118)
2025-01-18 11:16:28 -05:00
Rémi Verschelde
b9d5e5d2a1 libpng: Update to upstream 1.6.44
(cherry picked from commit d471210eba)
2025-01-18 11:16:28 -05:00
Emanuel Acosta Gonzalez (emanvidmaker)
b29802d76d Sync controller mappings DB with SDL2 community repo [Nov 2024]
Synced with cfc2bffe0a

(cherry picked from commit f2d58f5d76)
2025-01-18 11:16:28 -05:00
Pāvels Nadtočajevs
bba9af1223 [Linux] Use safe IDs for native file dialog options.
(cherry picked from commit ed7b4f5c4a)
2025-01-18 11:16:27 -05:00
Pedro J. Estébanez
1e727b2b2f Raise the amount of file handles on Windows
(cherry picked from commit a5f86ee07e)
2025-01-18 11:16:27 -05:00
Thaddeus Crews
22c2604776 CI: Update Linux runners to Ubuntu 24.04
(cherry picked from commit 8d1462c748)
2025-01-18 11:16:27 -05:00
Pedro J. Estébanez
3f4c085593 Rationalize busy waits
(cherry picked from commit 4f8dd96b3d)
2025-01-18 11:16:27 -05:00
Hilderin
d1ed0b45fb Fix FileSystem dock won't show any file folders (v2)
(cherry picked from commit 1b0c5cbc01)
2025-01-18 11:16:27 -05:00
Haoyu Qiu
48b7db4707 Cache results for TranslationServer.compare_locales()
(cherry picked from commit acab2d6c1c)
2025-01-18 11:16:27 -05:00
bruvzg
d3826e32ad [TextServer] Silently skip invalid system fallback fonts.
(cherry picked from commit d222daa9c8)
2025-01-18 11:16:26 -05:00
kobewi
879f84e62a Discard additional redo on commiting actions
(cherry picked from commit 7aef30c2a8)
2025-01-18 11:16:26 -05:00
Hugo Locurcio
00895fbdb9 Mention display driver and window mode in Copy System Info text
This is useful information to know, as the X11 display driver can be
used both on X11 natively and on Wayland through XWayland.

Certain editor issues only occur in multi-window mode
(or only in single-window mode). Some issues also only occur
on multi-monitor setups, so the monitor count is now listed.

(cherry picked from commit 107675f785)
2025-01-18 11:16:26 -05:00
Rémi Verschelde
98185cf5b7 miniupnpc: Update to 2.2.8 (new major 18)
Keep support for major 17 by using a version check for the changed API.

Fixes #93907.

(cherry picked from commit 4c72d599f0)
2025-01-18 11:16:26 -05:00
Hugo Locurcio
0e760b36c3 Use antialiased line drawing in animation Bezier editor
This applies both to tangents and general line drawing, making the
animation Bezier editor match the Curve editor inspector.

(cherry picked from commit ef35ca2d8f)
2025-01-18 11:16:26 -05:00
Pedro J. Estébanez
05d171ea63 TranslationServer: Add fast path for comparison of equal locales
(cherry picked from commit cfb7443e26)
2025-01-18 11:16:25 -05:00
Fabio Alessandrelli
da931b5973 [mbedTLS] Update to 3.6.1
(cherry picked from commit 4ac1f9c08a)
2025-01-18 11:16:25 -05:00
Pedro J. Estébanez
ef9226931e WorkerThreadPool: Print info about thread count at startup
(cherry picked from commit db4672f83f)
2025-01-18 11:16:25 -05:00
Stuart Carnie
1b319d8bbb macOS/iOS: Fix various warnings when targeting newer SDKs
(cherry picked from commit 41875d8aef)
2025-01-18 11:16:25 -05:00
Silc Lizard (Tokage) Renew
45b00cb39a Add hint for oneshot & warning when it will be updated continuously
(cherry picked from commit 761a20f7a7)
2025-01-18 11:16:25 -05:00
bruvzg
219fe640c6 [Windows] Add Intel Gen7.5/Gen8/Gen9 GPUs to Angle blocklist.
(cherry picked from commit d222921f06)
2025-01-18 11:16:24 -05:00
bruvzg
d5ac846e25 Remove unnecessary DLL export attributes.
(cherry picked from commit 3156856aa1)
2025-01-18 11:16:24 -05:00
OlesyaGerasimenko
c8754d11b0 Add Russian translation to Linux .desktop file
(cherry picked from commit 443da32655)
2025-01-18 11:16:24 -05:00
Claire Blackshaw
55cba2e3fa OpenXR - Support for the Logitech MxInk Stylus
In future work we may want to expose an isStylus or similar for
XR Trackers, though that is likely outside the scope of this commit
which is the core extension work.

Vendor Ref: https://logitech.github.io/mxink/OpenXR.html

(cherry picked from commit 19c7afee07)
2025-01-18 11:16:19 -05:00
Adam Scott
2f0f68cb32 [Web] Fix DirAccess::unlink() not updating the IDBFS
(cherry picked from commit a6c5373a09)
2025-01-18 10:57:32 -05:00
demolke
736126b5e2 Fix handling of leading .. in simplify_path
Prior to this `..\..\texture.png` was incorrectly simplified to `texture.png`

(cherry picked from commit 964e2b3a9e)
2025-01-18 10:57:32 -05:00
jsjtxietian
31b13f3372 Fix error when use relative #include in .gdshader / .gdshaderinc file
(cherry picked from commit 6cf9af2817)
2025-01-18 10:57:31 -05:00
Pedro J. Estébanez
52930875de Make loading translations from threads safe
(cherry picked from commit 7a25173ff4)
2025-01-18 10:57:31 -05:00
Pedro J. Estébanez
e949fb70ce ResourceLoader: Report appropriate error code when no suitable loader is found
(cherry picked from commit f79b972d0d)
2025-01-18 10:57:31 -05:00
Adam Scott
434c9b96b6 Force get_thread_count() to 1 if single threaded
(cherry picked from commit 4988fa1ece)
2025-01-18 10:57:31 -05:00
A Thousand Ships
dca6227bf2 Fix a few more super calls in get_configuration_warnings methods
A few missed last pass and one incorrect from that pass

(cherry picked from commit 26938086eb)
2025-01-18 10:57:31 -05:00
Rudolph Bester
85ad6223fd Fixed occlusion culling for double builds by enforcing float conversion for Embree.
(cherry picked from commit 4089a6cb8c)
2025-01-18 10:57:30 -05:00
Yevhen Babiichuk (DustDFG)
4b29b2ea60 Allow use RID with in operator for Arrays and Dictionaries
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
(cherry picked from commit ee5d90853f)
2025-01-18 10:57:30 -05:00
Haoyu Qiu
ae159c674c Fix atr_n() behavior when auto translation is disabled
(cherry picked from commit 210810bacb)
2025-01-18 10:57:30 -05:00
Juan
2acdc359b8 Make internal unique scene resource ID deterministic
Changes the Resource::generate_scene_unique_id() to be deterministic and
seedable.

Fixes #97110

(cherry picked from commit abf9d24520)
2025-01-18 10:57:30 -05:00
Rémi Verschelde
bbe2ec5b53 Revert "Avoid duplicating signals from scene instances into packed scenes"
This partially reverts commit 8a42e3d3ef.

Comment improvements and the test case were kept, with one part commented out.

(cherry picked from commit 2153a60425)
2025-01-18 10:57:30 -05:00
cixil
ffa2691f31 Avoid duplicating signals from scene instances into packed scenes
(cherry picked from commit 8a42e3d3ef)
2025-01-18 10:57:30 -05:00
Pedro J. Estébanez
33820eaa1f WorkerThreadPool: Add safety point between languages finished and pool termination
(cherry picked from commit 5d371e3378)
2025-01-18 10:57:24 -05:00
smix8
cc6dbfaa41 Add bounds function to NavigationMeshSourceGeometryData
Adds get_bounds() function to NavigationMeshSourceGeometryData2D/3D to get a bounding box that covers all the geometry.

(cherry picked from commit 2e1f6b50fb)
2025-01-18 08:17:04 -05:00
Pedro J. Estébanez
3ae633abf2 Report shader arrays sized after spec constants as zero-sized
This effectively disables validation of the size of the data provided.

(cherry picked from commit 90679f1dcf)
2025-01-18 08:16:37 -05:00
Dario
640b197622 D3D12: Avoid validation warnings about zero-sized barrier groups
(cherry picked from commit bb0a8e56e1)
2025-01-18 08:16:27 -05:00
Pedro J. Estébanez
053bd3d7e5 WorkerThreadPool: Refactor running and exit-requested as runlevels
(cherry picked from commit 2a483fa9ba)
2025-01-18 08:09:58 -05:00
Pedro J. Estébanez
7a496309ba WorkerThreadPool: Improve logic
- The main thread function and the collaborative wait functions have a much more similar structure than earlier, which yields (pun intended) better maintainability.
- Also, there are not assertions anymore about the reason for ending a wait being valid, because spurious awakes can happen and so the assert would fail without that indicating an issue.

(cherry picked from commit 2640960706)
2025-01-18 08:09:58 -05:00
Pedro J. Estébanez
b3d874c593 Revert "WorkerThreadPool: Enhance lifetime for more flexibility"
This reverts commit 2d1dd41ef5.

(cherry picked from commit e2fd88ed91)
2025-01-18 08:09:58 -05:00
Pedro J. Estébanez
96ac04c763 Make languages' thread enter/exit more resilient
(cherry picked from commit c8acf561ef)
2025-01-18 08:09:57 -05:00