Skip to content

Commit

Permalink
Revert "refactor: 调整微调target_fps的占用率阈值"
Browse files Browse the repository at this point in the history
This reverts commit c18facf.
  • Loading branch information
shadow3aaa committed Jan 3, 2025
1 parent da06f00 commit 391655e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/scheduler/looper/policy/controll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ fn adjust_target_fps(target_fps: f64, controller_state: &mut ControllerState) ->
if controller_state.usage_sample_timer.elapsed() >= Duration::from_secs(1) {
controller_state.usage_sample_timer = Instant::now();
let usage = controller_state.controller.usage_max();
if usage <= 40.0 {
if usage <= 55.0 {
controller_state.target_fps_offset -= 0.1;
} else if usage >= 70.0 {
} else if usage >= 80.0 {
controller_state.target_fps_offset += 0.1;
}
}
Expand Down

0 comments on commit 391655e

Please sign in to comment.