You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Remove "Using present mode" verbose prints in Vulkan and Direct3D 12
These messages were printed every time the swapchain was recreated (e.g. on viewport size change), which could easily end up spamming the output. The chosen present mode is already displayed when using the Print FPS project setting or command line argument.
This commit is contained in:
@@ -2847,9 +2847,7 @@ Error RenderingDeviceDriverVulkan::swap_chain_resize(CommandQueueID p_cmd_queue,
|
||||
}
|
||||
|
||||
bool present_mode_available = present_modes.has(present_mode);
|
||||
if (present_mode_available) {
|
||||
print_verbose("Using present mode: " + present_mode_name);
|
||||
} else {
|
||||
if (!present_mode_available) {
|
||||
// Present mode is not available, fall back to FIFO which is guaranteed to be supported.
|
||||
WARN_PRINT(vformat("The requested V-Sync mode %s is not available. Falling back to V-Sync mode Enabled.", present_mode_name));
|
||||
surface->vsync_mode = DisplayServer::VSYNC_ENABLED;
|
||||
|
||||
Reference in New Issue
Block a user