Black screen for a second when using app.setCanvasResolution

Is this normal that my canvas go all black for a second when I change the resolution using app.setCanvasResolution()?

Is there a way to remove this effect?

Hi @Mystik,

That’s a good question, looking at the resizeCanvas method in the graphicsDevice class I see only the canvas size is updated.

Not sure why it would get black for a frame. Try posting an issue about it on the engine repo.

I just tested in firefox and this black/flicker effect is not there. I think it’s may be related on how browsers manage the resolution of canvas in their rendering pipeline.


Nice find, thanks for sharing @Mystik