Skip to content

Commit

Permalink
fix: 调整微调目标fps的占用率阈值
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Nov 26, 2024
1 parent a359a2f commit ca10192
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 @@ -82,9 +82,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 >= 50.0 {
} else if usage >= 80.0 {
controller_state.target_fps_offset += 0.1;
}
}
Expand Down

0 comments on commit ca10192

Please sign in to comment.