386 Commits

Author SHA1 Message Date
0cc88f34da Add support for delta encoding to patch PCKs 2025-11-26 13:52:19 +01:00
7722d52d51 Revert "Fix EditorExportPlugin::_export_file() ignoring GDScripts"
This reverts commit 9504b0ff7a.

This broke exporting C# projects to Android in debug builds.

- Fixes #112918.
- Fixes #112397.
2025-11-25 14:46:05 +01:00
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
65a0ace3bc Fix typo in MacOS and iOS export settings 2025-11-19 13:05:57 -05:00
dc6671a24d Merge pull request #112465 from akien-mga/shader-baker-export-linux
Shader Baker: Fix Linux export warning
2025-11-19 11:04:05 -06:00
14734cbcf8 Shader Baker: Fix Linux export warning
We now have APIs exactly for this use case of querying project settings
for a target platform instead of the host OS.

- Fixes #112462.
2025-11-19 14:51:38 +01:00
b9d5c3e213 Fix shader baker freezing if there are errors in the shader compilation process.
`tasks_processed` was not incrementing previously, so the packing was never considered "done".
2025-11-19 12:43:09 +01:00
b630d374a2 Fixed validation error with export preset names 2025-11-17 18:41:06 -06:00
93a3ea5ff8 Merge pull request #112590 from syntaxerror247/export-dialog
Default preset container to minimum size in Export dialog
2025-11-13 20:52:15 -06:00
afa07c1a76 Merge pull request #109987 from van800/shakhov/dap-devices
Refactor debugging on a device with DAP - now possible with all device types
2025-11-12 11:24:10 -06:00
49ac9f63fd Refactor debugging on a device with DAP - now possible with all device types
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
2025-11-11 22:54:01 +01:00
5bbf280423 Default preset container to minimum size in Export dialog 2025-11-12 02:19:40 +05:30
b8a8f8b35a Allow localizing the application name with project translations 2025-11-08 13:06:55 +08:00
d7353e27d8 Merge pull request #111449 from bruvzg/pe_set_max
Enable maximize button for Editor/Project settings dialogs.
2025-11-04 16:32:50 -06:00
90cab74af9 Merge pull request #110248 from KoBeWi/unexpected_include_hell
Misc cleanup in EditorExportPlatform
2025-11-04 16:32:39 -06:00
ae9732139a Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
1c1c3200e4 Misc cleanup in EditorExportPlatform 2025-10-29 22:25:37 +01:00
edbfb7a6ec Merge pull request #111183 from stuartcarnie/matias-uma-pc-pr
Add Persistent Buffers utilizing UMA
2025-10-24 11:23:11 -05:00
9d2b619f51 Merge pull request #108737 from bruvzg/adb_scrcpy
[Android] Add export option to use "scrcpy" to run project from editor.
2025-10-24 11:23:03 -05:00
230adb7511 Add Persistent Buffers
This work is a heavily refactored and rewritten from TheForge's initial
code.

TheForge's original code had too many race conditions and was
fundamentally flawed as it was too easy to incur into those data races
by accident.

However they identified the proper places that needed changes, and the
idea was sound. I used their work as a blueprint to design this work.

This PR implements:

 - Introduction of UMA buffers used by a few buffers
(most notably the ones filled by _fill_instance_data).

Ironically this change seems to positively affect PC more than it does
on Mobile.

Updates D3D12 Memory Allocator to get GPU_UPLOAD heap support.

Metal implementation by Stuart Carnie.

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
Co-authored-by: TheForge team
2025-10-24 08:16:19 +11:00
79c3bf447a Merge pull request #109356 from KoBeWi/advanced_presets
Move advanced toggle state out of export presets
2025-10-23 15:33:52 -05:00
f7263b9517 [Android] Add export option to use "scrcpy" to run project from editor. 2025-10-14 15:12:48 +03:00
d3285f5468 Merge pull request #111185 from WhalesState/vp-disable-xr
More XR disable for Viewport and export.
2025-10-13 19:28:56 -05:00
4219ce91f2 Merge pull request #110485 from bruvzg/aemb_dtr
Fix iOS/visionOS export plugin crash on exit.
2025-10-13 07:35:19 +02:00
f06565ab94 Enable maximize button for Editor/Project settings, Export and Editor Features dialogs. 2025-10-09 15:42:22 +03:00
ce98fae6e8 Merge pull request #111302 from hijawesam/fix/encryption-docs-link
Editor: Fix 'More Info…' link in Export/Encryption
2025-10-06 14:34:06 -05:00
9894256e3a More XR disable for Viewport and export. 2025-10-06 20:15:07 +03:00
d1d28c0bcf Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
a9d361f88f editor: Fix 'More Info…' link in Export/Encryption (Fixes #111108) 2025-10-05 22:28:31 +03:00
19c47c5d99 Remove #include "scene/main/timer.h" from control.h 2025-10-05 14:41:06 +09:00
1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
cf3c00056c Merge pull request #109974 from rsanchezsaez/apple/swiftui-lifecycle
SwiftUI lifecycle for Apple embedded platforms
2025-10-03 12:01:09 -05:00
3ffcae66a8 Renderer: Fix missing shader_name; use forward declarations
* Moving over to RenderingShaderContainer, missed setting shader_name
* Use forward declaration reduces compile time when modifying
  rendering_shader_container.h from over 950s to about 10-15
2025-10-02 10:02:18 +10:00
4594de69fd Merge pull request #111013 from stuartcarnie/shader_container_ext
Renderer: Move `reflect_spirv` to `RenderingShaderContainer`
2025-10-01 17:54:09 -05:00
22467f3a5b Merge pull request #111018 from Zylann/fix_double_build_get_downloads_availability
Fix unreachable code warning in double-precision builds
2025-09-30 20:10:38 -05:00
5240f1c283 Merge pull request #108658 from bruvzg/ed_pl_init
[EditorExportPlatform] Move initialization to a dedicated method.
2025-09-30 18:35:25 -05:00
65e8b0951b Renderer: Move reflect_spirv to RenderingShaderContainer
This change introduces a new protected type, `ReflectedShaderStage` to
`RenderingShaderContainer` that derived types use to access SPIR-V and
the reflected module, `SpvReflectShaderModule` allowing implementations
to use the reflection information to compile their platform-specific
module.

* Fixes memory leak in `reflect_spirv` that would not deallocate the
  `SpvReflectShaderModule` if an error occurred.
* Removes unnecessary allocation when creating `SpvReflectShaderModule`
  by passing `NO_COPY` flag to `spvReflectCreateShaderModule2`
  constructor function.
* Replaces `VectorView` with `Span` for consistency
* Fixes unnecessary allocations in D3D12 shader container in
  `_convert_spirv_to_nir` and `_convert_spirv_to_dxil` which implicitly
  converted the old `VectorView` to a `Vector`
2025-09-30 06:40:14 +10:00
0534423c58 Fix unreachable code warning in double-precision builds 2025-09-29 18:36:00 +02:00
e366471fdc Add GDSOFTCLASS to deeper inheritors of Object 2025-09-24 19:15:56 +01:00
038f5934e7 [Apple embedded] Adopt SwiftUI lifecycle for Apple embedded platforms
- Introduces a SCons builder for Swift files
- Increases the minimum deployment targets to iOS 14.0, and visionOS 26.0.
- Replaces manually UIWindow management by a SwiftUI instantiated app.
2025-09-22 18:20:04 -07:00
f553875728 Merge pull request #110387 from timothyqiu/project-zip-utf8
Set language encoding flag when using Pack Project as ZIP
2025-09-22 13:28:49 -05:00
14bdf39806 Merge pull request #107789 from rsanchezsaez/apple/apple-embedded-export-template
Replace iOS/visionOS Xcode templates by new Apple embedded template
2025-09-19 13:07:09 -05:00
988721cda3 Merge pull request #106146 from gtibo/show-encryption-key
Add "Show Encryption Key" toggle
2025-09-19 09:16:59 -05:00
490af72c99 Merge pull request #109815 from Muller-Castro/export-script-file
Fix `EditorExportPlugin::_export_file()` ignoring GDScripts
2025-09-16 11:44:52 -05:00
906aff5331 Fix iOS/visionOS export plugin crash on exit. 2025-09-13 11:22:40 +03:00
cadd08da9e Set language encoding flag when using Pack Project as ZIP 2025-09-11 16:44:09 +08:00
b7aac81366 Metal: Ensure baking to binary sets minimum target OS
Co-authored-by: Travis Lange <travislange12@gmail.com>
2025-09-08 08:16:53 +10:00
9504b0ff7a Fix EditorExportPlugin::_export_file() ignoring GDScripts 2025-09-03 16:50:28 -03:00
0f0bb7d225 Merge pull request #110025 from DarioSamo/fix-shader-debug-info-take-two
Fix --generate-spirv-debug-info regression (alternate take)
2025-09-01 19:37:27 -07:00
e137c882c0 Disable smolv and change the shader hash when SPIR-V debug info is enabled. 2025-08-28 14:17:58 -03:00