Skip to content

Commit 5ed10e3

Browse files
committed
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.
1 parent 04692d8 commit 5ed10e3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

drivers/d3d12/rendering_device_driver_d3d12.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,8 +2459,6 @@ Error RenderingDeviceDriverD3D12::swap_chain_resize(CommandQueueID p_cmd_queue,
24592459
break;
24602460
}
24612461

2462-
print_verbose("Using swap chain flags: " + itos(creation_flags) + ", sync interval: " + itos(sync_interval) + ", present flags: " + itos(present_flags));
2463-
24642462
if (swap_chain->d3d_swap_chain != nullptr && creation_flags != swap_chain->creation_flags) {
24652463
// The swap chain must be recreated if the creation flags are different.
24662464
_swap_chain_release(swap_chain);

drivers/vulkan/rendering_device_driver_vulkan.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,9 +2847,7 @@ Error RenderingDeviceDriverVulkan::swap_chain_resize(CommandQueueID p_cmd_queue,
28472847
}
28482848

28492849
bool present_mode_available = present_modes.has(present_mode);
2850-
if (present_mode_available) {
2851-
print_verbose("Using present mode: " + present_mode_name);
2852-
} else {
2850+
if (!present_mode_available) {
28532851
// Present mode is not available, fall back to FIFO which is guaranteed to be supported.
28542852
WARN_PRINT(vformat("The requested V-Sync mode %s is not available. Falling back to V-Sync mode Enabled.", present_mode_name));
28552853
surface->vsync_mode = DisplayServer::VSYNC_ENABLED;

0 commit comments

Comments
 (0)