0.4.1 • Published 6 months ago

@0b5vr/tweakpane-plugin-profiler v0.4.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

@0b5vr/tweakpane-plugin-profiler

npm

Profiler plugin for Tweakpane

tweakpane-plugin-profiler

Sandbox

<script type="module">
  import * as Tweakpane from 'https://unpkg.com/tweakpane@4.0.1/dist/tweakpane.js';
  import * as TweakpaneProfilerBladePlugin from './tweakpane-plugin-profiler.js';

  const pane = new Tweakpane.Pane();

  pane.registerPlugin( TweakpaneProfilerBladePlugin );

  const profiler = pane.addBlade( {
    view: 'profiler',
    label: 'profiler',
  } );

  function update() {
    profiler.measure( 'haha', () => {
      somethingExpensive();
    } );

    requestAnimationFrame( update );
  }
  requestAnimationFrame( update );
</script>
0.4.1

6 months ago

0.4.0

6 months ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago