issues
search
cocos2d
/
cocos2d-x
Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.02k
stars
7.05k
forks
source link
cocos定时器的问题
#20757
Open
xiaoniu1235
opened
1 year ago
xiaoniu1235
commented
1 year ago
cocos2d-x version: 3.x release版本 (貌似4.x也一样)
可能存在问题:如果一个定时器,处理的事情的函数,占用时间超过定时器时间间隔,会导致这个定时器一直处在循环处理事件中,其它定时器没有机会处理事件。 一般来说,客户端的定时器,我们不会太依赖它的时间精度,所以,建议把Timer::update里的while循环去掉!