Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from LibreVR:master #82

Merged
merged 5 commits into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revive: Disable stats in Dance Central VR.
Avoids an access violation.
  • Loading branch information
CrossVR committed Oct 13, 2019
commit 03d103217f330321500a05ebcd8b5c66b42b27a1
3 changes: 3 additions & 0 deletions Revive/REV_CAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,9 @@ OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetPerfStats(ovrSession session, ovrPerfStats
{
REV_TRACE(ovr_GetPerfStats);

if (session->Details->UseHack(SessionDetails::HACK_DISABLE_STATS))
return ovrSuccess;

ovrPerfStatsPerCompositorFrame FrameStats[ovrMaxProvidedFrameStats];

// TODO: Implement performance scale heuristics
Expand Down
3 changes: 2 additions & 1 deletion Revive/SessionDetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ SessionDetails::HackInfo SessionDetails::m_known_hacks[] = {
{ "ultrawings.exe", nullptr, HACK_FAKE_PRODUCT_NAME, true },
{ "AirMech.exe", nullptr, HACK_SLEEP_IN_SESSION_STATUS, true },
{ nullptr, "lighthouse", HACK_SPOOF_SENSORS, false },
{ nullptr, "lighthouse", HACK_STRICT_POSES, false }
{ nullptr, "lighthouse", HACK_STRICT_POSES, false },
{ "DCVR-Win64-Shipping.exe", nullptr, HACK_DISABLE_STATS, true }
};

SessionDetails::SessionDetails()
Expand Down
4 changes: 4 additions & 0 deletions Revive/SessionDetails.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class SessionDetails
// Some driver don't support pose submission therefore we can't use predicted poses for rendering
// that did not come from the compositor.
HACK_STRICT_POSES,

// Hack: Disable support for performance statistics.
// Dance Central VR crashes when any of the compositor statistics calls are made.
HACK_DISABLE_STATS,
};

SessionDetails();
Expand Down