@0b5vr/tweakpane-plugin-profiler
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @0b5vr/tweakpane-plugin-profiler

Weekly Downloads

23

Version

0.4.1

License

MIT

Unpacked Size

376 kB

Total Files

30

Last publish

Collaborators

  • 0b5vr