[Cogl] Shader garbage collection

Lionel Landwerlin llandwerlin at gmail.com
Fri Dec 13 10:06:02 PST 2013


Hi all,

Back a few months ago I was investigating a live shader editor using Cogl.
I run into a problem with Cogl printing a lot of warning because more 
than 50 shaders had been generated.

Obviously a shader editor is going to generate a lot of shader even 
though I take care of checking to some extents the shader's grammar etc...

After discussion with Neil I understood that Cogl doesn't actually 
destroy any created shaders and just hopes that the developer won't 
create too much of them.

Neil just pointed to a patch on IRC that could resolve this problem :

http://lists.freedesktop.org/archives/cogl/2013-March/001063.html

Would some of the maintainers have a look at this and consider 
integration of such a patch?

Cheers,

-
Lionel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/cogl/attachments/20131213/51d7b079/attachment.html>


More information about the Cogl mailing list