when vive is on i5 report a target frame rate of 45 so we can see that in stats

This commit is contained in:
Brad Hefta-Gaub 2016-10-26 14:20:58 -07:00
parent de419c2818
commit 23b74c7aff
2 changed files with 5 additions and 2 deletions

View file

@ -42,7 +42,6 @@ PoseData _nextSimPoseData;
#define MIN_CORES_FOR_NORMAL_RENDER 5
bool forceInterleavedReprojection = (QThread::idealThreadCount() < MIN_CORES_FOR_NORMAL_RENDER);
static std::array<vr::Hmd_Eye, 2> VR_EYES { { vr::Eye_Left, vr::Eye_Right } };
bool _openVrDisplayActive { false };
// Flip y-axis since GL UV coords are backwards.
@ -357,6 +356,10 @@ bool OpenVrDisplayPlugin::isSupported() const {
return openVrSupported();
}
float OpenVrDisplayPlugin::getTargetFrameRate() const {
return forceInterleavedReprojection ? (TARGET_RATE_OpenVr / 2.0f) : TARGET_RATE_OpenVr;
}
void OpenVrDisplayPlugin::init() {
Plugin::init();

View file

@ -44,7 +44,7 @@ public:
void init() override;
float getTargetFrameRate() const override { return TARGET_RATE_OpenVr; }
float getTargetFrameRate() const override;
void customizeContext() override;
void uncustomizeContext() override;