Skip to content

Commit

Permalink
fix: 修复#131
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Jan 8, 2025
1 parent 3b792fa commit c4696cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/scheduler/looper/buffer/calculate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Buffer {

let current_fps = self.calculate_max_fps_over_samples(5)?;

if unlikely(current_fps < (target_fpses[0].saturating_sub(10).max(10)).into()) {
if unlikely(current_fps < (target_fpses.first()?.saturating_sub(10).max(10)).into()) {
return None;
}

Expand Down

0 comments on commit c4696cc

Please sign in to comment.