mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Delay taking snapshot further at low render rates
This commit is contained in:
parent
69aa61174f
commit
6a6bf6a5e0
1 changed files with 2 additions and 1 deletions
|
@ -474,9 +474,10 @@ function takeSnapshot() {
|
|||
volume: 1.0
|
||||
});
|
||||
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 () {
|
||||
Window.takeSnapshot(false, includeAnimated, 1.91);
|
||||
}, SNAPSHOT_DELAY);
|
||||
}, Math.max(SNAPSHOT_DELAY, DOUBLE_RENDER_TIME_TO_MS / Rates.render ));
|
||||
}, FINISH_SOUND_DELAY);
|
||||
UserActivityLogger.logAction("snaphshot_taken", { location: location.href });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue