Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

疑问:为什么当相隔两个帧的时间间隔超过2 frameInterval 的时候,视为该FPS结束时间? #5

Open
chejdj opened this issue Dec 21, 2022 · 0 comments

Comments

@chejdj
Copy link

chejdj commented Dec 21, 2022

详细代码是这样

if (interval > (_frameInterval!.inMicroseconds * 2)) {
          break; //注意这里是break,这次循环结束了,虽然在同一个队列里,但有可能相邻的两帧不在一个时间段,所以不能放一起计算,有个开源的就是没处理这里
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant