Skip to content

Commit

Permalink
fix: 部分游戏frame-analyzer无法接收帧数据
Browse files Browse the repository at this point in the history
在无法匹配到target fps时重新attach frame-analyzer到目标进程修复
  • Loading branch information
shadow3aaa committed Oct 24, 2024
1 parent ff746ff commit 3f717e9
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 @@ -56,7 +56,7 @@ impl Buffer {

pub fn calculate_target_fps(&mut self, extension: &Extension) {
let new_target_fps = self.target_fps();
if self.target_fps_state.target_fps != new_target_fps {
if self.target_fps_state.target_fps != new_target_fps || new_target_fps.is_none() {
if let Some(target_fps) = new_target_fps {
extension.trigger_extentions(ApiV2::TargetFpsChange(
target_fps,
Expand Down

0 comments on commit 3f717e9

Please sign in to comment.