Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c86ab3a authored by ramindani's avatar ramindani
Browse files

[SF] use peak refresh rate to schedule the next

When we change display mode we schedule the next frame
at a new peakRefresh rate

Test: verify render rate is not switched to 240 in the trace
BUG: 308858993
Change-Id: I1bfb97d5d4eac6f51a306c108d03a5bc4410baae
parent 3fa9d850
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -560,10 +560,8 @@ auto DisplayDevice::setDesiredMode(display::DisplayModeRequest&& desiredMode) ->
        return DesiredModeAction::InitiateRenderRateSwitch;
    }

    // Set the render frame rate to the active physical refresh rate to schedule the next
    // frame as soon as possible.
    setActiveMode(activeMode.modePtr->getId(), activeMode.modePtr->getVsyncRate(),
                  activeMode.modePtr->getVsyncRate());
                  activeMode.modePtr->getPeakFps());

    // Initiate a mode change.
    mDesiredModeOpt = std::move(desiredMode);