Skip to content

Commit

Permalink
refactor: 调整目标FPS偏移的CPU利用率阈值
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Jan 24, 2025
1 parent de0b92e commit 0c94b8b
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 @@ -79,9 +79,9 @@ fn adjust_target_fps(target_fps: f64, controller_state: &mut ControllerState) ->
controller_state.usage_sample_timer = Instant::now();
let util = controller_state.controller.util_max();

if util <= 0.25 {
if util <= 0.5 {
controller_state.target_fps_offset -= 0.1;
} else if util >= 0.3 {
} else if util >= 0.6 {
controller_state.target_fps_offset += 0.1;
}
}
Expand Down

0 comments on commit 0c94b8b

Please sign in to comment.