Skip to content

Commit

Permalink
Reduce log spam again
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jul 5, 2023
1 parent 2d160ee commit 254d37d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mods/VR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ void VR::on_present() {
if (renderer == Framework::RendererType::D3D11) {
// if we don't do this then D3D11 OpenXR freezes for some reason.
if (!runtime->got_first_sync) {
spdlog::info("Attempting to sync!");
SPDLOG_INFO_EVERY_N_SEC(1, "Attempting to sync!");
if (runtime->get_synchronize_stage() == VRRuntime::SynchronizeStage::LATE) {
runtime->synchronize_frame();
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/vr/D3D11Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ bool D3D11Component::TextureContext::clear_rtv(float* color) {
vr::EVRCompositorError D3D11Component::on_frame(VR* vr) {
if (m_force_reset || m_last_afr_state != vr->is_using_afr()) {
if (!setup()) {
spdlog::error("Failed to setup D3D11Component, trying again next frame");
SPDLOG_ERROR_EVERY_N_SEC(1, "Failed to setup D3D11Component, trying again next frame");
m_force_reset = true;
return vr::VRCompositorError_None;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/vr/D3D12Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace vrmod {
vr::EVRCompositorError D3D12Component::on_frame(VR* vr) {
if (m_force_reset || m_last_afr_state != vr->is_using_afr()) {
if (!setup()) {
spdlog::error("[D3D12 VR] Could not set up, trying again next frame");
SPDLOG_ERROR_EVERY_N_SEC(1, "[D3D12 VR] Could not set up, trying again next frame");
m_force_reset = true;
return vr::VRCompositorError_None;
}
Expand Down

0 comments on commit 254d37d

Please sign in to comment.