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

Update game.ts #7269

Merged
merged 1 commit into from Sep 1, 2020
Merged

Update game.ts #7269

merged 1 commit into from Sep 1, 2020

Conversation

kissSimple
Copy link
Contributor

当帧率设置为非30或60的时候,如果玩家修改了手机时间(例如提前了一个小时),将导致currTime - legacyCC.game._lastTime为一个很大的负值,间接造成timeToCall很大,director.mainLoop将在一个小时后才会被调用。

Re: cocos-creator/2d-tasks#

Changes:
*

当帧率设置为非30或60的时候,如果玩家修改了手机时间(例如提前了一个小时),将导致currTime - legacyCC.game._lastTime为一个很大的负值,间接造成timeToCall很大,director.mainLoop将在一个小时后才会被调用。
@pandamicro pandamicro merged commit dcfeb16 into cocos:3d-v1.2 Sep 1, 2020
@kissSimple kissSimple deleted the patch-1 branch October 19, 2020 12:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants