Skip to content

Commit

Permalink
修改参数
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Dec 2, 2023
1 parent 50d9526 commit ca20d60
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions fas-rs-fw/src/scheduler/looper/mode_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,17 @@ impl<P: PerformanceController> Looper<P> {

match mode {
Mode::Powersave => {
scale_time = Duration::from_millis(50);
tolerant_frame_limit = Duration::from_millis(50);
tolerant_frame_jank = Duration::from_millis(60);
}
Mode::Balance => {
scale_time = Duration::from_millis(15);
tolerant_frame_limit = Duration::from_millis(15);
tolerant_frame_jank = Duration::from_millis(20);
}
Mode::Performance => {
scale_time = Duration::from_millis(10);
tolerant_frame_limit = Duration::from_millis(10);
tolerant_frame_jank = Duration::from_millis(15);
}
Mode::Fast => {
scale_time = Duration::from_millis(5);
Mode::Balance => {
scale_time = Duration::from_millis(10);
tolerant_frame_limit = Duration::from_millis(6);
tolerant_frame_jank = Duration::from_millis(10);
}
Mode::Performance | Mode::Fast => {
scale_time = Duration::from_millis(10);
tolerant_frame_limit = Duration::from_millis(5);
tolerant_frame_jank = Duration::from_millis(10);
}
Expand Down

0 comments on commit ca20d60

Please sign in to comment.