Skip to content

Feature Request: support GPU.js (or turbo.js) for rendering canvas ? #3586

Open
@fffiloni

Description

@fffiloni

Nature of issue?

  • New feature request

Most appropriate sub-area of p5.js?

  • [ x] Core/Environment/Rendering

Which platform were you using when you encountered this?

  • [x ] Desktop/Laptop

Problem encountered

I'm making an animation drawing tool, that displays onion skin to help animators to stay on track. But, when we have lots of curveVertex path displayed, like both onion skins + current drawing,
CPU is way too much working.

I handled that by giving possibility to enable/disable onion skins and specific layer, to let the CPU breath, but maybe we could give it even more air.

New feature details:

I was browsing the specs of some libraries that enables javascript to be rendered via the GPU, like GPU.js or Turbo.js, and i thought that we could be able to specify how the draw function would be executed form the CPU or from the GPU.

What about an additional module called p5.gpu.js that would let us active this performance enhancement feature ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions