0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-29 06:33:05 +00:00

perf: Change watchtime polling rate from 4x/s to 2x/s

This commit is contained in:
Kenny 2022-08-10 16:27:36 -04:00
parent befeba7d1b
commit cb61f1ef69

View file

@ -50,7 +50,7 @@ export default {
controls(newVal) { controls(newVal) {
if (newVal) { // controls are VISIBLE if (newVal) { // controls are VISIBLE
this.updateWatchTime(); // Call to immediately update this.updateWatchTime(); // Call to immediately update
this.runWatchTimeUpdates = setInterval(this.updateWatchTime, 250); this.runWatchTimeUpdates = setInterval(this.updateWatchTime, 500);
} else { // Controls are INVISIBLE } else { // Controls are INVISIBLE
clearInterval(this.runWatchTimeUpdates); clearInterval(this.runWatchTimeUpdates);
} }