这是indexloc提供的服务,不要输入任何密码
Skip to content

Setting pixel ratio corners the viewport #79

@saif-ellafi

Description

@saif-ellafi

Hello,

Thanks for this library, We've been doing quite some progress with my dice rolling.

However I am having extremely low framerate performance in laptops without dedicated GPUs and high resolution displays (i.e. 4k), so I was trying to cap the dpr like this:

          threeJs!.renderer!.setPixelRatio(1.0);
          threeJs!.renderer!.setSize(width, height, false);

but I can't seem to make the viewport extend to the full screen of the app, having this set the viewport to a small corner of the screen.

Any thoughts or ideas for sorting this out, and in general, improving framerate in potato devices?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions