How do I enable adaptToDeviceRatio in playground?

I want to render with high physical resolution on Mac, where the value of window.devicePixelRatio is 2.

Seems I have to enable adaptToDeviceRatio on creating engine.

But the engine is already created, modification of adaptToDeviceRatio after engine creation has no effect. How can I achieve this in playground?

Thank you.

You can create your own engine by specifying the createEngine function

Related: [Playground Request] Considering "devicePixelRatio" for Ratina displays - #2 by Deltakosh

PG:

1 Like

Thanks! It works

1 Like