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 a98526d commit d2f176e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/scheduler/looper/policy/controll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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.6 {
if util <= 0.55 {
controller_state.target_fps_offset -= 0.1;
} else if util >= 0.65 {
controller_state.target_fps_offset += 0.1;
Expand Down

0 comments on commit d2f176e

Please sign in to comment.