summaryrefslogtreecommitdiffstats
path: root/main/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fixes godot crash or give unclear message when exporting with invalid argsjsjtxietian2024-09-051-1/+6
| | |
* | | Merge pull request #91780 from Riteo/falling-with-styleRémi Verschelde2024-09-041-0/+5
|\ \ \ | | | | | | | | | | | | Improve UX when falling back between Display Servers
| * | | Warn when falling back to another DisplayServerRiteo2024-08-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before it was a bit unclear on what was happening, since a display server has to fail to fall back and so the user would be left with an error _and_ a (hopefully) running game. Should make the experience more pleasant on Linux/BSD now that we have two display servers.
* | | | Update rendering driver name on fallbacks. Fix rendering driver/method in ↵bruvzg2024-09-011-6/+3
| |/ / |/| | | | | | | | the editor system info.
* | | Merge pull request #96197 from jsjtxietian/splash-msgRémi Verschelde2024-08-291-1/+2
|\ \ \ | | | | | | | | | | | | Improve error message when loading non-PNG splash image
| * | | Add is png check and better err msg when loading splash imgaejsjtxietian2024-08-291-1/+2
| | | |
* | | | Merge pull request #93746 from KoBeWi/by_extensionRémi Verschelde2024-08-281-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Allow more image types for some project settings
| * | | | Allow more image types for some project settingskobewi2024-06-291-2/+2
| | | | |
* | | | | Add support for the debug utils extension in OpenXRBastiaan Olij2024-08-271-0/+2
| | | | |
* | | | | Merge pull request #76085 from spanzeri/better_remember_editor_windowRémi Verschelde2024-08-261-1/+62
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Remember editor window mode, screen, size and position on restart
| * | | | | Remember editor window mode, screen, size and position on restartSamuele Panzeri2024-07-231-1/+62
| | | | | |
* | | | | | Merge pull request #95777 from ↵Rémi Verschelde2024-08-261-2/+28
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Calinou/command-line-improve-rendering-driver-method-error-messages Improve error messages for invalid rendering drivers/methods on the command line
| * | | | | Improve error messages for invalid rendering drivers/methods on the command lineHugo Locurcio2024-08-181-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Deduplicate rendering driver names. - Tweak grammar and punctuation to be consistent across both messages. - Use "rendering method" terminology in the relevant error message. Preview: `--rendering-driver unknown`: Unknown rendering driver 'unknown', aborting. Valid options are 'vulkan', 'opengl3', 'opengl3_es' and 'dummy'. `--rendering-method unknown`: Unknown rendering method 'unknown', aborting. Valid options are 'forward_plus', 'mobile' and 'gl_compatibility'.
* | | | | | Disable extra memory tracking by defaultMatias N. Goldberg2024-08-241-0/+5
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR #90993 added several debugging utilities. Among them, advanced memory tracking through the use of custom allocators and VK_EXT_device_memory_report. However as issue #95967 reveals, it is dangerous to leave it on by default because drivers (or even the Vulkan loader) can too easily accidentally break custom allocators by allocating memory through std malloc but then request us to deallocate it (or viceversa). This PR fixes the following problems: - Adds --extra-gpu-memory-tracking cmd line argument - Adds missing enum entries to RenderingContextDriverVulkan::VkTrackedObjectType - Adds RenderingDevice::get_driver_and_device_memory_report - GDScript users can easily check via print( RenderingServer.get_rendering_device().get_driver_and_device_memory_report() ) - Uses get_driver_and_device_memory_report on device lost for appending further info. Fixes #95967
* | | | | Add Metal support for macOS (arm64) and iOSStuart Carnie2024-08-201-2/+13
| | | | |
* | | | | Change hand tracking project settings and finetune show_when_trackedBastiaan Olij2024-08-201-1/+3
|/ / / /
* | | | Merge pull request #95656 from anvilfolk/gdscript-docs-quitRémi Verschelde2024-08-171-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | Fix Godot not quitting with `--doctool --gdscript-docs`.
| * | | | Fix Godot not quitting with `--doctool --gdscript-docs`.ocean2024-08-161-0/+3
| | | | |
* | | | | Merge pull request #94799 from ↵Rémi Verschelde2024-08-161-3/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | m4gr3d/memory_allocation_cleanup_and_optimizations Android memory cleanup and optimizations
| * | | | Memory cleanup and optimizationsFredia Huya-Kouadio2024-08-161-3/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Returns an empty list when there's not registered plugins, thus preventing the creation of spurious iterator objects - Inline `Godot#getRotatedValues(...)` given it only had a single caller. This allows to remove the allocation of a float array on each call and replace it with float variables - Disable sensor events by default. Sensor events can fired at 10-100s Hz taking cpu and memory resources. Now the use of sensor data is behind a project setting allowing projects that have use of it to enable it, while other projects don't pay the cost for a feature they don't use - Create a pool of specialized input `Runnable` objects to prevent spurious, unbounded `Runnable` allocations - Disable showing the boot logo for Android XR projects - Delete locale references of jni strings
* | | | Merge pull request #95549 from timothyqiu/split-translation-serverRémi Verschelde2024-08-161-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | Split `TranslationServer` into its own file
| * | | | Split TranslationServer into its own fileHaoyu Qiu2024-08-151-1/+1
| | |_|/ | |/| |
* | | | Merge pull request #95513 from bruvzg/ds_init_cleanupRémi Verschelde2024-08-161-1/+28
|\ \ \ \ | | | | | | | | | | | | | | | Run cleanup code on DisplayServer init failure to prevent crash on exit.
| * | | | Run cleanup code on DisplayServer init failure to prevent crash on exit.bruvzg2024-08-141-1/+28
| |/ / /
* | | | Merge pull request #95502 from bruvzg/net_ext_detectRémi Verschelde2024-08-161-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | [.NET] Move search in files extension list definition to be after Scene level module init.
| * | | | [.NET] Move search in files extension list definition to be after Scene ↵bruvzg2024-08-141-0/+8
| |/ / / | | | | | | | | | | | | level module init.
* | | | Merge pull request #95520 from bruvzg/angle_gen7and8Rémi Verschelde2024-08-161-2/+73
|\ \ \ \ | | | | | | | | | | | | | | | [Windows] Add Intel Gen7.5/Gen8/Gen9 GPUs to Angle blocklist.
| * | | | [Windows] Add Intel Gen7.5/Gen8/Gen9 GPUs to Angle blocklist.bruvzg2024-08-151-2/+73
| |/ / /
* | | | Merge pull request #92391 from rburing/fti_3dRémi Verschelde2024-08-161-5/+9
|\ \ \ \ | |/ / / |/| | | | | | | Physics interpolation (3D)
| * | | Fixed Timestep Interpolation (3D)Ricardo Buring2024-07-071-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds 3D fixed timestep interpolation to the rendering server. This does not yet include support for multimeshes or particles. Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* | | | Merge pull request #94796 from kus04e4ek/backfallRémi Verschelde2024-07-291-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | Windows: Fall back to D3D12 if Vulkan is not supported and vice versa
| * | | | Fall back to D3D12 if Vulkan is not supported and vice versaKusok2024-07-271-0/+3
| | |/ / | |/| |
* / | | Apply prefer_wayland only if no display driver is setRiteo2024-07-261-4/+6
|/ / / | | | | | | | | | | | | Before this patch any other display driver preference would be overridden.
* | | Merge pull request #88065 from Riteo/ds-pref-consistentRémi Verschelde2024-07-221-12/+14
|\ \ \ | | | | | | | | | | | | Handle display driver preferences consistently between editor and projects
| * | | Handle display driver preferences consistently between editor and projectsRiteo2024-02-071-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The way that it was implemented before allowed for the project property to spill over to the editor if the `prefer_wayland` property is not present which, while not completely likely, is still a possibility. This specific part is thus more of a correctness change, ensuring that we always enforce the default display server when not running a project. This commit also removes the restart requirement for the relative display driver project settings as they're independent and a restart would do nothing useful.
* | | | End benchmark of Main::Setup properly before calling setup2Alvin Wong2024-07-211-1/+2
| | | |
* | | | Merge pull request #94116 from bruvzg/ed_quit_unloadRémi Verschelde2024-07-191-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | [Editor] Unload addons when using `--import` or `--quit`.
| * | | | [Editor] Unload addons when using `--import` or `--quit`.bruvzg2024-07-091-0/+12
| | |/ / | |/| |
* | | | Merge pull request #94412 from dsnopek/xr-always-renderRémi Verschelde2024-07-181-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | Always render when XR is enabled, even if no OS windows can draw
| * | | | Always render when XR is enabled, even if no OS windows can drawDavid Snopek2024-07-171-1/+1
| |/ / /
* | | | Merge pull request #94404 from clayjohn/android-clear-colorRémi Verschelde2024-07-171-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Restore default clear color after displaying boot splash
| * | | | Restore default clear color after displaying boot splashclayjohn2024-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | On Android the boot splash can be shown at a different time, so the clear color restore needs to happen within the `setup_boot_logo` function
* | | | | Merge pull request #94052 from m4gr3d/clean_input_dispatch_settingsRémi Verschelde2024-07-171-12/+4
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Cleanup Android input on render thread settings
| * | | | Cleanup Android input on render thread settingsFredia Huya-Kouadio2024-07-091-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up to https://github.com/godotengine/godot/pull/93933 Clean up the set of settings use to control whether Android input should be dispatched on the render thread. Addresses comments in https://github.com/godotengine/godot/pull/93933#issuecomment-2210437977
* | | | | Fix a bunch of orphan StringName errors at ProjectSettings/Editor exitYuri Rubinsky2024-07-091-0/+3
| |/ / / |/| | |
* | | | Fix physics tick counterRicardo Buring2024-07-071-1/+1
|/ / / | | | | | | | | | | | | | | | The counter is now incremented at the start of a physics tick rather than at the end. Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* | | Fix ANRs reported by the Google Play ConsoleFredia Huya-Kouadio2024-07-041-0/+2
| | | | | | | | | | | | | | | | | | - Add support for dispatching input on the render thread (UI thread is the current default) when `input_buffering` and `accumulated_input` are disabled. At the expense of latency, this helps prevent 'heavy' applications / games from blocking the UI thread (the default behavior) which may cause the application to ANR. - Remove GLSurfaceView logic causing the UI thread to wait on the GL thread during lifecycle events. The removed logic would cause the UI thread to ANR when the GL thread is blocked.
* | | Fix crashes reported by the Google Play ConsoleFredia Huya-Kouadio2024-07-041-11/+11
| | |
* | | Fix the issue causing the logo to not show when using the `compatibility` ↵Fredia Huya-Kouadio2024-07-031-65/+68
| |/ |/| | | | | renderer
* | Update the splash screen logic for the Godot app templateFredia Huya-Kouadio2024-06-101-1/+1
| | | | | | | | Due to limitations to the splash screen introduced in Android 12, the splash screen logic is updated to the same logic as used on other platforms, i.e: the splash screen is rendered by the Godot engine instead of the Android runtime.