Skip to content

[p5.js 2.0+ Bug Report]: noLoop() not working on WebGPU mode #8931

@eupthere

Description

@eupthere

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.3.0

Web browser and version

Firefox 151.0.4

Operating system

MacOSX 26.5.1

Steps to reproduce this

Steps:

  1. Create a WebGPU sketch
  2. Run following snippet
  3. Canvas should be grey, but isn't

Snippet:

async function setup() {
  await createCanvas(400, 400, WEBGPU);
  noLoop();
}

function draw() {
  background(128);
}
Image

Canvas exists, but the draw doesn't seem to run. A workaround is using noLoop() when frameCount > 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions