mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 11:19:54 +02:00
Merge pull request #538 from ctrlaltdavid/fix/camera-in-screenshot
Delay taking snapshot further at low render rates
This commit is contained in:
commit
bfb4eaeb21
1 changed files with 2 additions and 1 deletions
|
@ -474,9 +474,10 @@ function takeSnapshot() {
|
||||||
volume: 1.0
|
volume: 1.0
|
||||||
});
|
});
|
||||||
HMD.closeTablet();
|
HMD.closeTablet();
|
||||||
|
var DOUBLE_RENDER_TIME_TO_MS = 2000; // If rendering is bogged down, allow double the render time to close the tablet.
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function () {
|
||||||
Window.takeSnapshot(false, includeAnimated, 1.91);
|
Window.takeSnapshot(false, includeAnimated, 1.91);
|
||||||
}, SNAPSHOT_DELAY);
|
}, Math.max(SNAPSHOT_DELAY, DOUBLE_RENDER_TIME_TO_MS / Rates.render ));
|
||||||
}, FINISH_SOUND_DELAY);
|
}, FINISH_SOUND_DELAY);
|
||||||
UserActivityLogger.logAction("snaphshot_taken", { location: location.href });
|
UserActivityLogger.logAction("snaphshot_taken", { location: location.href });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue