Skip to content

Commit

Permalink
Remove hard coded refresh rate for fps calculation. (flutter#4289)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll authored and alexander-doroshko committed Jan 24, 2020
1 parent d2c1513 commit 037772b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/flutter/vmService/FlutterFramesMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public double getFPS() {
return 0.0;
}

return frameCount * 60.0 / costCount;
final double targetDisplayRefreshRate = vmServiceManager.getCurrentDisplayRefreshRateRaw();
return frameCount * targetDisplayRefreshRate / costCount;
}

public void addListener(Listener listener) {
Expand Down

0 comments on commit 037772b

Please sign in to comment.