@@ -1465,11 +1465,6 @@ void * AppThreadFunction(void * parm ) {
1465
1465
return NULL ;
1466
1466
}
1467
1467
1468
- //Set the screen refresh
1469
- if (DISPLAY_REFRESH != -1 ) {
1470
- vrapi_SetDisplayRefreshRate (gAppState .Ovr , DISPLAY_REFRESH );
1471
- }
1472
-
1473
1468
// Create the scene if not yet created.
1474
1469
ovrScene_Create ( m_width , m_height , & gAppState .Scene , & java );
1475
1470
@@ -1486,26 +1481,6 @@ void * AppThreadFunction(void * parm ) {
1486
1481
//Should now be all set up and ready - start the Doom main loop
1487
1482
VR_DoomMain (argc , argv );
1488
1483
}
1489
- //Doesn't work
1490
- /*
1491
- else {
1492
- if (!hasLauncher) {
1493
- vrapi_ShowFatalError(&gAppState.Java, "Missing Launcher",
1494
- "Please install and run QuestZDoom Launcher to start correctly",
1495
- "QuestZDoom", 666);
1496
- } else {
1497
- vrapi_ShowFatalError(&gAppState.Java, "No IWADs Found",
1498
- "Please install a valid IWAD using QuestZDoom Launcher",
1499
- "QuestZDoom", 666);
1500
- }
1501
-
1502
- while (!destroyed) {
1503
- QzDoom_processMessageQueue();
1504
- QzDoom_getTrackedRemotesOrientation(0);
1505
- incrementFrameIndex();
1506
- showLoadingIcon();
1507
- }
1508
- }*/
1509
1484
1510
1485
//We are done, shutdown cleanly
1511
1486
shutdownVR ();
@@ -1521,6 +1496,11 @@ void QzDoom_FrameSetup()
1521
1496
{
1522
1497
//Use floor based tracking space
1523
1498
vrapi_SetTrackingSpace (gAppState .Ovr , VRAPI_TRACKING_SPACE_LOCAL_FLOOR );
1499
+
1500
+ //Set the screen refresh - repeat this every frame so VrApi doesn't try changing it on us
1501
+ if (DISPLAY_REFRESH != -1 ) {
1502
+ vrapi_SetDisplayRefreshRate (gAppState .Ovr , DISPLAY_REFRESH );
1503
+ }
1524
1504
}
1525
1505
1526
1506
void QzDoom_processHaptics () {//Handle haptics
0 commit comments