|
@@ -21,7 +21,7 @@ VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), {
|
|
|
|
|
|
update: ( function () {
|
|
|
|
|
|
- var prevTime = 0;
|
|
|
+ var prevTime = Date.now();
|
|
|
|
|
|
return function () {
|
|
|
|
|
@@ -29,9 +29,9 @@ VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), {
|
|
|
|
|
|
if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
|
|
|
|
|
|
- var time = performance.now();
|
|
|
+ var time = Date.now();
|
|
|
|
|
|
- if ( prevTime + ( 1 / this.frameRate ) < time ) {
|
|
|
+ if ( time - prevTime >= ( 1000 / this.frameRate ) ) {
|
|
|
|
|
|
this.needsUpdate = true;
|
|
|
prevTime = time;
|