Skip to content

Commit

Permalink
change thresh of MaybeSleepBeforeSubmit flutter#6145
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 11, 2022
1 parent 3a981d0 commit b5aa039
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/common/rasterizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ RasterStatus Rasterizer::DrawToSurface(

void Rasterizer::MaybeSleepBeforeSubmit(
FrameTimingsRecorder& frame_timings_recorder) {
static const int MAX_HISTORY = 5;
static const int HISTORY_THRESH = 3;
// about thresh - #6145
static const int MAX_HISTORY = 10;
static const int HISTORY_THRESH = 2;
// NOTE a bit *more* than enough to allow errors
static const fml::TimeDelta SAFE_MARGIN =
fml::TimeDelta::FromMicroseconds(500);
Expand Down

0 comments on commit b5aa039

Please sign in to comment.