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

feat: Add stats-js as performance monitor #9

Merged
merged 4 commits into from
Feb 28, 2025
Merged

feat: Add stats-js as performance monitor #9

merged 4 commits into from
Feb 28, 2025

Conversation

MisaLiu
Copy link
Contributor

@MisaLiu MisaLiu commented Feb 27, 2025

No description provided.

@Naptie Naptie force-pushed the main branch 3 times, most recently from 10bd833 to 1ef8558 Compare February 27, 2025 18:50
@MisaLiu
Copy link
Contributor Author

MisaLiu commented Feb 28, 2025

@Naptie 也许 ready to merge 了。


小作文之关于帧生成时间的计算:

参考了 Phaser 的文档,Scene 在渲染时会自上而下发出如下列的事件:

  • PRE_UPDATE
  • UPDATE
  • Scene.update been called
  • POST_UPDATE
  • PRE_RENDER
  • RENDER

我以 PRE_UPDATE 为始、RENDER 为末计算渲染时间,(也许)能计算出更精准的帧生成时间。

@MisaLiu MisaLiu marked this pull request as ready for review February 28, 2025 08:35
@MisaLiu MisaLiu requested a review from Naptie February 28, 2025 08:35
@Naptie Naptie merged commit e8b2103 into main Feb 28, 2025
9 checks passed
@Naptie Naptie deleted the stats-js branch March 2, 2025 10:09
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.

2 participants