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
8.85k stars 2.05k forks source link

GFX Pipeline Cache Support #14760

Open bluesky013 opened 1 year ago

bluesky013 commented 1 year ago

Use Case

When compiling shaders, use the binary compilation results from the previous launch.

Problem Description

The creation and compilation process of Shader and PSO may have significant overhead, and using binary caching can speed up this process.

Proposed Solution

The compilation results of Shader and PSO can be obtained and reused from the driver to accelerate the next compilation process.

The implementations of each backend are as follows:

How it works

No response

Alternatives Considered

none

Additional Information

No response

bluesky013 commented 1 year ago

遗留: GLES2: shader binary Metal: MTLBinaryArchive