Remove maximum frame rate limit with OSR (fixes issue #3077)

This commit is contained in:
Yannick 2021-03-18 17:46:03 +00:00 committed by Marshall Greenblatt
parent 505bf24abb
commit 47f15dd307

View File

@ -10,15 +10,13 @@ namespace {
// The rate at which new calls to OnPaint will be generated.
const int kDefaultFrameRate = 30;
const int kMaximumFrameRate = 60;
} // namespace
int ClampFrameRate(int frame_rate) {
if (frame_rate < 1)
return kDefaultFrameRate;
else if (frame_rate > kMaximumFrameRate)
return kMaximumFrameRate;
return frame_rate;
}