From 4ca3a925ce24f06812c6a5d4407ff4fcdde312f3 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 24 Jan 2020 21:42:25 +0000 Subject: [PATCH] [xswiftbus] FramePeriodSampler: hook into a different render phase Was previously using cockpit phase, which wouldn't work when the view was external. --- src/xswiftbus/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xswiftbus/service.cpp b/src/xswiftbus/service.cpp index 6a8647192..9c02330d3 100644 --- a/src/xswiftbus/service.cpp +++ b/src/xswiftbus/service.cpp @@ -40,7 +40,7 @@ namespace XSwiftBus static constexpr size_t c_maxSampleCount = 500; static constexpr float c_framePeriodBudget = 0.05f; - FramePeriodSampler() : CDrawable(xplm_Phase_LastCockpit, false) {} + FramePeriodSampler() : CDrawable(xplm_Phase_LastScene, false) {} std::tuple getFrameStats() {