cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
7.17k stars 1.83k forks source link

Fine-tuning profiler information to reducing misinformation about DrawCall #13124

Open jareguo opened 1 year ago

jareguo commented 1 year ago

In some cases, users focus too much on the DrawCall metric and ignore the performance degradation associated with excessive batching. We should slightly weaken the presentation of the DrawCall and direct the user to focus more on the overall rendering time (CPU + GPU).

Current information

The recommended order of adjustment is

Framerate
Draw Call
Instance Count    // drawcall associated metric, put it closer to drawcall
Frame Time  // time -> Time
  Renderer     // <---
  Game Logic
  Physics
Triangle
GFX Texture Mem
GFX Buffer Mem

Also, Renderer followed by a percentage: round(renderer / frameTime * 100) + "%", just like

Renderer (ms)              0.52 [84%]

rely on: https://github.com/cocos/cocos-engine/issues/11043

jareguo commented 1 year ago

PS: It is better to be able to display the batching time separately, similar to

CPU Batch Time (ms)                        0.11