[xswiftbus] FramePeriodSampler: hook into a different render phase

Was previously using cockpit phase,
which wouldn't work when the view was external.
This commit is contained in:
Mat Sutcliffe
2020-01-24 21:42:25 +00:00
parent de037af702
commit 4ca3a925ce

View File

@@ -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<float, float, float, float> getFrameStats()
{