Search Unity

Frame rate is capped for certains rotation modes

Discussion in 'Android' started by Gonzasmpl, Jul 29, 2019.

  1. Gonzasmpl


    Jul 30, 2018
    Hi, frame rate is, by default, 30 for mobile devices, the problem comes when I try to lock fps at 60 running in the start method the following:
    Application.targetFrameRate = 60;

    It works perfectly when the application is running on landscape mode but then when it changes to portrait mode it returns a max number of 30 fps. These two situations runs in the same build, with Default Orientation set to Auto Rotation so I don't quite know what's wrong here.

    The main problem here is that the application should be always on portrait mode, which is the one giving 30 fps as the maximum value.

    If you know what could I do to make the application target frame rate to be 60 on portrait mode or have any suggestion, I would be grateful. Thanks!