forked from spacebar/SplatNet
update loading wheel to better match actual splatnet
This commit is contained in:
parent
38020aa261
commit
5604bf9e76
5 changed files with 55 additions and 59 deletions
|
|
@ -30,7 +30,7 @@ window.animateLoadingCanvas = function() {
|
|||
return;
|
||||
}
|
||||
if (!lastUpdateTime) lastUpdateTime = timestamp;
|
||||
if (timestamp - lastUpdateTime > 50) {
|
||||
if (timestamp - lastUpdateTime > 10) {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
ctx.drawImage(image, 0, currentFrame * frameHeight, frameWidth, frameHeight, 0, 0, frameWidth, frameHeight);
|
||||
currentFrame = (currentFrame + 1) % totalFrames;
|
||||
|
|
|
|||
Loading…
Reference in a new issue