From dafdd13ef335097e6a3bbbeb77f2c2c66aad810c Mon Sep 17 00:00:00 2001 From: praydog Date: Tue, 27 Feb 2024 13:45:51 -0800 Subject: [PATCH] Remove unused var --- src/mods/vr/FFakeStereoRenderingHook.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mods/vr/FFakeStereoRenderingHook.cpp b/src/mods/vr/FFakeStereoRenderingHook.cpp index f81802a1..4c813e0a 100644 --- a/src/mods/vr/FFakeStereoRenderingHook.cpp +++ b/src/mods/vr/FFakeStereoRenderingHook.cpp @@ -2408,8 +2408,6 @@ struct SceneViewExtensionAnalyzer { const auto func = (decltype(hooked_command_fn)*)original_func; const auto frame_count = cmd_frame_counts[cmd]; - static bool once2 = true; - if (once) { SPDLOG_INFO("[ISceneViewExtension] Command list frame count: {}", frame_count); SPDLOG_INFO("[ISceneViewExtension] Original vtable: {:x}", (uintptr_t)original_vtable); @@ -2418,7 +2416,7 @@ struct SceneViewExtensionAnalyzer { if (!found_correct_execute && !tested_execute_indices.contains(N) && VR::get()->get_present_thread_id() != 0) { tested_execute_indices.insert(N); - + // N == 0 is a pretty safe heuristic // Otherwise if >= 1 gets called first, we can assume if the thread is the same // as the DXGI present thread, then it's the correct execute function