godot/drivers
Matias N. Goldberg 59d0422dcd Disable extra memory tracking by default
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
2024-08-24 20:52:39 -03:00
..
alsa Replace find with contains/has where applicable 2024-05-08 12:37:42 +02:00
alsamidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
backtrace [Windows] Enable crash reporter on MinGW builds, use libbacktrace to generate stack trace from DWARF symbols. 2024-04-22 16:19:37 +03:00
coreaudio macOS/iOS: Fix various warnings when targeting newer SDKs 2024-08-20 11:55:21 +02:00
coremidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
d3d12 Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
egl EGL: Use EGL_EXT_platform_base whenever possible 2024-06-04 08:43:34 +02:00
gl_context [macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add EGL_ANDROID_blob_cache caching. 2023-09-21 14:21:00 +03:00
gles3 Merge pull request #95790 from aaronfranke/rect-aabb-support 2024-08-22 00:10:39 +02:00
metal Metal: fix artefacts for mobile render method and return false for multi-view support 2024-08-22 21:34:53 +10:00
png Fix arm64/Windows build. 2024-04-30 16:26:42 +03:00
pulseaudio Replace find with contains/has where applicable 2024-05-08 12:37:42 +02:00
unix Fix reload of GDExtension libraries in framework package on macos 2024-08-08 08:31:49 -06:00
vulkan Disable extra memory tracking by default 2024-08-24 20:52:39 -03:00
wasapi Use COM smart pointers to handle COM objects safely 2024-05-16 16:46:45 +05:30
windows Merge pull request #91100 from bruvzg/x_finks 2024-04-29 13:00:37 +02:00
winmidi Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
xaudio2 Add a --audio-output-latency command-line argument 2023-08-17 14:45:17 +02:00
register_driver_types.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_driver_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Better validation for platform-specific opt-in drivers 2024-08-21 22:53:34 +02:00