Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Lazy initialization of shader programs in GLProgramCache

$
0
0

@ryukbk wrote:

Looking into GLProgramCache::loadDefaultGLPrograms() & GLProgramCache::reloadDefaultGLPrograms() (which is called when the renderer is recreated on Android), there are some shaders which are not necessary for certain use cases (not all apps use 3D / CCDrawNode / distance field etc.) and they are always initialized regardless. Compiling shaders and linking them are quite slow, is there any plan to move the shader initialization to the initialization of each related component?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>