You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this while coding.
If I do this, I can see a graph like fps
I wanted someone to make this to plugin.
importStatsfrom"stats.js";// from mrdoob's stats.jsconststats=newStats();stats.showPanel(0);// 0: fps, 1: ms, 2: mb, 3+: customdocument.body.appendChild(stats.dom);//In addition to adding stats by Override the render function of WavesurferWaveSurfer.prototype.initTimerEvents=function(){// The timer fires every 16ms for a smooth progress animationthis.subscriptions.push(this.timer.on('tick',()=>{stats.begin();constcurrentTime=this.getCurrentTime();this.renderer.renderProgress(currentTime/this.getDuration(),true);this.emit('timeupdate',currentTime);this.emit('audioprocess',currentTime);stats.end();}));}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I came across this while coding.
If I do this, I can see a graph like fps
I wanted someone to make this to plugin.
Beta Was this translation helpful? Give feedback.
All reactions