Relative Content

Tag Archive for javascriptperformancehtml5-canvaschromiumrequestanimationframe

HTML Canvas takes too long to repaint

I’m working on a game with JavaScript using Electron.js. I’m using the HTML <canvas> element with 2d context as renderer. At some point, I’ve noticed that the game runs quite slow (less than 30 FPS).