aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-03-18 19:41:08 +0100
committersD <stoned@derpymail.org>2020-03-18 19:41:08 +0100
commit237ffcddf948ee0c54ab22f198540654d77becad (patch)
tree0828a26e147b5af51408a7daa343c65fae05f621 /webAO
parent4f66814433a970efa7b174cf9819bf6db6f985bf (diff)
get rid of 69ms extra delay
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 89c4b6d..f473755 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1324,14 +1324,6 @@ async changeBackground(position) {
}
/**
- * Intialize updater
- * @param {number} animdelay the length of pre-animation
- */
- initUpdater() {
- viewport.updater = setTimeout(() => viewport.tick(), UPDATE_INTERVAL);
- }
-
- /**
* Intialize testimony updater
*/
initTestimonyUpdater() {
@@ -1614,7 +1606,7 @@ async changeBackground(position) {
}
}
- this.initUpdater();
+ this.tick();
}
/**