Skip to content

Commit

Permalink
dev(mods::swapchain): reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Dec 9, 2024
1 parent 5a0e431 commit 5c6906c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/mods/swapchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2288,18 +2288,8 @@ static void OnPresent(
const reshade::api::rect* dest_rect,
uint32_t dirty_rect_count,
const reshade::api::rect* dirty_rects) {
reshade::log::message(reshade::log::level::info, "mods::swapchain::OnPresent()");

auto current_back_buffer = swapchain->get_current_back_buffer();

{
std::stringstream s;
s << "mods::swapchain::OnPresent(Back buffer: ";
s << reinterpret_cast<void*>(current_back_buffer.handle);
s << ")";
reshade::log::message(reshade::log::level::debug, s.str().c_str());
}

auto* device = swapchain->get_device();
auto& data = device->get_private_data<DeviceData>();

Expand All @@ -2310,13 +2300,7 @@ static void OnPresent(

reshade::api::resource swapchain_clone = {clone_pair->second};

{
std::stringstream s;
s << "mods::swapchain::OnPresent(Clone: ";
s << reinterpret_cast<void*>(swapchain_clone.handle);
s << ")";
reshade::log::message(reshade::log::level::debug, s.str().c_str());
}


std::stringstream s;
s << "mods::swapchain::OnPresent(";
Expand Down

0 comments on commit 5c6906c

Please sign in to comment.