Add logging for changes to universe ID
This commit is contained in:
@@ -978,6 +978,31 @@ void OverlayController::mainEventLoop()
|
||||
// events during the same call of OnTimeoutPumpEvents() INFO Removed
|
||||
// logging on play space mover for possible crashing issues.
|
||||
case vr::VREvent_ChaperoneUniverseHasChanged:
|
||||
{
|
||||
uint64_t previousUniverseId
|
||||
= vrEvent.data.chaperone.m_nPreviousUniverse;
|
||||
uint64_t currentUniverseId
|
||||
= vrEvent.data.chaperone.m_nCurrentUniverse;
|
||||
LOG( INFO ) << "(VREvent) ChaperoneUniverseHasChanged... Previous:"
|
||||
<< previousUniverseId
|
||||
<< " Current:" << currentUniverseId;
|
||||
|
||||
if ( !chaperoneDataAlreadyUpdated )
|
||||
{
|
||||
// LOG(INFO) << "Re-loading chaperone data ...";
|
||||
m_chaperoneUtils.loadChaperoneData();
|
||||
// LOG(INFO) << "Found " << m_chaperoneUtils.quadsCount() <<
|
||||
// " chaperone quads."; if
|
||||
// (m_chaperoneUtils.isChaperoneWellFormed()) { LOG(INFO) <<
|
||||
// "Chaperone data seems to be well-formed.";
|
||||
//} else {
|
||||
// LOG(INFO) << "Chaperone data is NOT well-formed.";
|
||||
//}
|
||||
chaperoneDataAlreadyUpdated = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case vr::VREvent_ChaperoneDataHasChanged:
|
||||
{
|
||||
if ( !chaperoneDataAlreadyUpdated )
|
||||
|
||||
Reference in New Issue
Block a user