-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
docs: add benchmark doc #2229
Merged
Merged
docs: add benchmark doc #2229
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
order: 4 | ||
title: 基准测试 | ||
--- | ||
|
||
## 测试准备 | ||
|
||
我们设计了一套测试方案,可以比较多种游戏引擎在多个性能因素上的表现。所有的测试都在以下环境中进行: | ||
|
||
- Macbook M2 Pro | ||
- Memory 16GB | ||
- Sonoma 14.4.1 | ||
|
||
和引擎一样,我们的基准测试代码也是开源的。你可以在 [benchmark](https://github.com/galacean/benchmark) 仓库来获取源代码。 本次测试中将包括 Galacean Engine, Babylon.js 以及 Three.js 三个引擎。 | ||
|
||
### 基础渲染 | ||
|
||
本基准测试,我们测试了三款引擎在加载 225 个 glTF 模型场景下的初始化时间,以及在同时播放 255 个 glTF 动画时的性能。 | ||
|
||
<BenchmarkDisplay type="gltf" /> | ||
|
||
|
||
### 例子系统 | ||
|
||
本基准测试,我们测试了三款引擎在使用 500 个粒子系统,以相似参数在不透明背景下的渲染性能。 | ||
|
||
<BenchmarkDisplay type="particle" /> | ||
|
||
> Three.js 自身没有 Particle System,也没有目前仍在维护的首选三方库。类似效果一般通过开发者独力实现。因此我们在此项测试中使用 `three-nebula` 来代指 Three.js 的粒子系统 | ||
|
||
### 2D 渲染 | ||
|
||
In the 2D test, we tested the performance of placing 7920 2D sprites and rotating them simultaneously. | ||
|
||
<BenchmarkDisplay type="2d" /> | ||
|
||
## 总结 | ||
|
||
我们选择了 Babylon.js,Three.js 以及 PixiJS 这几款引擎进行测试,是因为它们都是当前最受欢迎的游戏引擎,并且在开发的过程中,它们一直是我们努力去赶超的目标。我们希望通过这些基准测试为社区提供透明以及可比较的性能信息。 | ||
|
||
如果你希望我们包括你的游戏引擎,或者认为这些测试存在改进建议,欢迎随时开启一个 [issue](https://github.com/galacean/benchmark/issues)。 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhance the invitation for community engagement.
The invitation to open issues for suggestions or to include other engines is good, but it could be more engaging.
Committable suggestion