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

cocos定时器的问题 #20757

Open
xiaoniu1235 opened this issue Nov 22, 2022 · 0 comments
Open

cocos定时器的问题 #20757

xiaoniu1235 opened this issue Nov 22, 2022 · 0 comments

Comments

@xiaoniu1235
Copy link

  • cocos2d-x version: 3.x release版本 (貌似4.x也一样)
  • 可能存在问题:如果一个定时器,处理的事情的函数,占用时间超过定时器时间间隔,会导致这个定时器一直处在循环处理事件中,其它定时器没有机会处理事件。
    一般来说,客户端的定时器,我们不会太依赖它的时间精度,所以,建议把Timer::update里的while循环去掉!
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