☑ How to change DEVICE PIXEL RATIO in script dynamically

Hi, I want to change the DEVICE PIXEL RATIO in script dynamically. How do I do ?

Thank you !

    this.app.graphicsDevice.maxPixelRatio = window.devicePixelRatio;

I just noticed that we haven’t documented maxPixelRatio yet. Whoops. :smile:

2 Likes

Hello, will. In the project setting, we can check / uncheck the USE DEVICE PIXEL RATIO. If we uncheck this option, it’s meaning that maxPixlRatio equals 1 ?

That’s correct, yes.

thanks!:flushed::relaxed: