Skip to content

Commit

Permalink
[merge] Merge pull request #549 from inexorgame/hanni/fix_gpu_info
Browse files Browse the repository at this point in the history
Delete gpu_info entirely
  • Loading branch information
IAmNotHanni committed Jun 21, 2023
2 parents 4f7b837 + 22207ef commit debaaba
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 676 deletions.
4 changes: 0 additions & 4 deletions documentation/source/development/debugging/cla.rst
Expand Up @@ -15,10 +15,6 @@ You can start vulkan-renderer with the following command line arguments:

.. warning:: Enabling this option could decrease the overall performance. Don't enable this option unless you have to.

.. option:: --no-stats

Disables GPU info printing.

.. option:: --no-validation

Disables `Vulkan validation layers <https://github.com/KhronosGroup/Vulkan-ValidationLayers>`__.
Expand Down
1 change: 0 additions & 1 deletion include/inexor/vulkan-renderer/renderer.hpp
Expand Up @@ -6,7 +6,6 @@
#include "inexor/vulkan-renderer/msaa_target.hpp"
#include "inexor/vulkan-renderer/octree_gpu_vertex.hpp"
#include "inexor/vulkan-renderer/time_step.hpp"
#include "inexor/vulkan-renderer/vk_tools/gpu_info.hpp"
#include "inexor/vulkan-renderer/wrapper/instance.hpp"
#include "inexor/vulkan-renderer/wrapper/uniform_buffer.hpp"
#include "inexor/vulkan-renderer/wrapper/window.hpp"
Expand Down
67 changes: 0 additions & 67 deletions include/inexor/vulkan-renderer/vk_tools/gpu_info.hpp

This file was deleted.

1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -19,7 +19,6 @@ set(INEXOR_SOURCE_FILES

vulkan-renderer/vk_tools/device_info.cpp
vulkan-renderer/vk_tools/enumerate.cpp
vulkan-renderer/vk_tools/gpu_info.cpp
vulkan-renderer/vk_tools/representation.cpp

vulkan-renderer/wrapper/command_buffer.cpp
Expand Down
16 changes: 0 additions & 16 deletions src/vulkan-renderer/application.cpp
Expand Up @@ -376,8 +376,6 @@ Application::Application(int argc, char **argv) {
VK_MAKE_API_VERSION(0, ENGINE_VERSION[0], ENGINE_VERSION[1], ENGINE_VERSION[2]), m_enable_validation_layers,
enable_renderdoc_instance_layer);

vk_tools::print_driver_vulkan_version();

m_input_data = std::make_unique<input::KeyboardMouseInputData>();

m_surface = std::make_unique<wrapper::WindowSurface>(m_instance->instance(), m_window->get());
Expand All @@ -402,16 +400,6 @@ Application::Application(int argc, char **argv) {
spdlog::trace("Preferential graphics card index {} specified", *preferred_graphics_card);
}

bool display_graphics_card_info = true;

// If the user specified command line argument "--nostats", no information will be
// displayed about all the graphics cards which are available on the system.
const auto hide_gpu_stats = cla_parser.arg<bool>("--no-stats");
if (hide_gpu_stats.value_or(false)) {
spdlog::trace("--no-stats specified, no extended information about graphics cards will be shown");
display_graphics_card_info = false;
}

// If the user specified command line argument "--vsync", the presentation engine waits
// for the next vertical blanking period to update the current image.
const auto enable_vertical_synchronisation = cla_parser.arg<bool>("--vsync");
Expand All @@ -423,10 +411,6 @@ Application::Application(int argc, char **argv) {
m_vsync_enabled = false;
}

if (display_graphics_card_info) {
vk_tools::print_all_physical_devices(m_instance->instance(), m_surface->get());
}

bool use_distinct_data_transfer_queue = true;

// Ignore distinct data transfer queue
Expand Down

0 comments on commit debaaba

Please sign in to comment.