2

Seems like an update on google chrome messed up my canvas animation. Currently I´m getting lots of flickering, this seems awkward because I haven´t changed any of the code and it worked smoothly a couple days ago. Am I the only one with this problem?

ps: the animation works fine in firefox.

Camilo Barraza
  • 195
  • 1
  • 9

2 Answers2

1

Are you using double buffering? You should expect flickering unless you are using a buffer. See Does HTML5/Canvas Support Double Buffering? and Google search

Community
  • 1
  • 1
Gavin Haynes
  • 1,721
  • 11
  • 21
  • No, I was having a good performance without it...but seems I´ll have to implement it. thanks for the recommendation – Camilo Barraza Feb 11 '12 at 21:25
  • no luck...it´s weird because i´ve been working on the canvas for about 3 months and never had this problem...I´ve tested several versions of my project that worked fine and suddenly I have flickering (on firefox things work ass expected) – Camilo Barraza Feb 12 '12 at 01:07
0

try using requestAnimationFrame: https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame

kthompson
  • 803
  • 6
  • 16