Sign in to follow this  
ewinter

WebGL or Canvas Renderer as default

Recommended Posts

Which renderer should I set as default in my game. I noticed that with WebGL renderer, when I tried with my laptop it was performing super slow. That was because chrome by default used the integrated GPU rather than the better one. That made me wonder if that happens on production environment, many players might never come back to give second try if the performance is so bad on the first try. I tried with Canvas Renderer and it works fine (+144 FPS) with "average" amount of sprites (relative to my game).

Should I use forceCanvas: true by default and give users choice in settings if they want to use WebGL renderer instead if available?

In what situations Canvas Renderer is better choice, does it perform better in old computers than WebGL renderer?

Is it common that chrome doesn't pick the better GPU by default?

My CPU: i5-4460 @ 3.20ghz

Thanks!

Share this post


Link to post
Share on other sites

Integrated GPU => turn off antialiasing and make sure you don't re-render parts of screen several times. If you cant do that, use CanvasRenderer by default.

Is it common that chrome doesn't pick the better GPU by default?

There's "powerPreference" setting, I dont know if its already supported in browsers, but you can pass it in pixi renderer options and see if it helps.

Share this post


Link to post
Share on other sites

You could also have an option screen and let player select what rendering to use. And then maybe have an FPS tracking system that notifies player that they could get better performance with another mode and then give a button to change renderer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.