Cocos Creator 3.4.0 possibility to set Pixel Ratio

Hi all, has Cocos Creator possibility to set Pixel Ratio as analogue in Three.js engine?
https://threejs.org/docs/#api/en/renderers/WebGLRenderer.setPixelRatio

Thanks.

I can ask engineering to have a look.

Hi, we plan to support another standard interface to prevent bluring output canvas in the future.

Currently, it’s a readonly value from view.getDevicePixelRatio() interface.

Thanks for response, in my case I want to set lower pixel ratio in case it can increase game performance :grinning:

Can I manually set the game resolution? For example, set it from 414x896 to 207x448, but keep it full windowed?

we will limit DPR to 2 in v3.4.1 on Web platforms to increase game performance, you can even set a lower value by customizing engine this way

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.