If setPixelRatio is used, do we also need to use resolution to multiply width/height on setSize?

Hi everybody,

So far I’m only setting pixel ratio with renderer.setPixelRatio(reso) in projects and the size to the window with renderer.setSize(window.innerWidth, window.innerHeight), but I’m not sure now;

Ddoes this work fine with hiDPI screens for more details? Or do we also need to multiply the size of the window by the resolution like renderer.setSize(window.innerWidth * reso, window.innerHeight * reso)? What’s the correct way to support HiDPI?

Thanks in advance!


use either one , not both

both do the same thing

1 Like

I was hoping so! Thanks for the confirmation and link!