Why my p5.js sketches run so slow on chrome ?

156 views
Skip to first unread message

Colin Thil

unread,
May 9, 2018, 4:46:05 AM5/9/18
to Chromium-discuss
Hi. I'm using p5.js to create interactive experiences for browser.
My programs run at 60fps in every browser except the latest versions of chrome.
Does anyone have the same issue ? Is there something I can do ?

Thanks for your help !

Here is a simple page that display frame rate in p5.js, I'm around 10 in fullscreen.
http://pleaseletme.help/framerate/

And here is the p5.js sketch :

function setup() {
  createCanvas(windowWidth, windowHeight);
}

function windowResized() {
  resizeCanvas(windowWidth, windowHeight);
}

function draw() {
  background(255);
  textAlign(CENTER,CENTER);
  text(frameRate(),width/2,height/2);
}

Reply all
Reply to author
Forward
0 new messages