mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
[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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user