Skip to content

Commit

Permalink
fix: 无法接收帧数据时未正常重启fas
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Oct 24, 2024
1 parent 65aeb87 commit 2794f73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/framework/scheduler/looper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,15 @@ impl Looper {
#[cfg(debug_assertions)]
debug!("janked: {}", self.fas_state.janked);
buffer.additional_frametime(&self.extension);
self.do_policy();

match buffer.state.working_state {
BufferWorkingState::Unusable => {
self.disable_fas();
}
BufferWorkingState::Usable => {
self.do_policy();
}
}
}
}
}
Expand Down

0 comments on commit 2794f73

Please sign in to comment.