mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
59d0422dcd
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 |
||
---|---|---|
.. | ||
dummy | ||
environment | ||
renderer_rd | ||
storage | ||
renderer_canvas_cull.cpp | ||
renderer_canvas_cull.h | ||
renderer_canvas_render.cpp | ||
renderer_canvas_render.h | ||
renderer_compositor.cpp | ||
renderer_compositor.h | ||
renderer_geometry_instance.cpp | ||
renderer_geometry_instance.h | ||
renderer_scene_cull.cpp | ||
renderer_scene_cull.h | ||
renderer_scene_occlusion_cull.cpp | ||
renderer_scene_occlusion_cull.h | ||
renderer_scene_render.cpp | ||
renderer_scene_render.h | ||
renderer_viewport.cpp | ||
renderer_viewport.h | ||
rendering_context_driver.cpp | ||
rendering_context_driver.h | ||
rendering_device_binds.cpp | ||
rendering_device_binds.h | ||
rendering_device_commons.cpp | ||
rendering_device_commons.h | ||
rendering_device_driver.cpp | ||
rendering_device_driver.h | ||
rendering_device_graph.cpp | ||
rendering_device_graph.h | ||
rendering_device.compat.inc | ||
rendering_device.cpp | ||
rendering_device.h | ||
rendering_light_culler.cpp | ||
rendering_light_culler.h | ||
rendering_method.cpp | ||
rendering_method.h | ||
rendering_server_constants.h | ||
rendering_server_default.cpp | ||
rendering_server_default.h | ||
rendering_server_globals.cpp | ||
rendering_server_globals.h | ||
SCsub | ||
shader_compiler.cpp | ||
shader_compiler.h | ||
shader_language.cpp | ||
shader_language.h | ||
shader_preprocessor.cpp | ||
shader_preprocessor.h | ||
shader_types.cpp | ||
shader_types.h | ||
shader_warnings.cpp | ||
shader_warnings.h |