[Development] GLSL Optimizer

Agocs Laszlo Laszlo.Agocs at digia.com
Fri Feb 14 15:16:36 CET 2014


FYI we now have QTBUG-27872 for this. Besides getting more optimal shader code, this is also extremely useful for translating our shaders on-the-fly to a more modern GLSL syntax, when necessary, avoiding code duplication.

Best regards,
Laszlo

-----Original Message-----
From: development-bounces+laszlo.agocs=digia.com at qt-project.org [mailto:development-bounces+laszlo.agocs=digia.com at qt-project.org] On Behalf Of Agocs Laszlo
Sent: 3. februar 2014 12:41
To: development at qt-project.org
Subject: Re: [Development] GLSL Optimizer

Hello,

This might be useful indeed, but it should be noted that you really do not want to add this to the "Qt OpenGL module" (as in qtbase/src/opengl). This module should not be used anymore and is destined to be deprecated completely once QGLWidget gets a proper replacement. The modern OpenGL helpers  are part of QtGui (qtbase/src/gui/opengl).

Cheers,
Laszlo

-----Original Message-----
From: development-bounces+laszlo.agocs=digia.com at qt-project.org [mailto:development-bounces+laszlo.agocs=digia.com at qt-project.org] On Behalf Of Christian Gagneraud
Sent: 3. februar 2014 11:17
To: development at qt-project.org
Subject: Re: [Development] GLSL Optimizer

On 02/03/2014 10:17 PM, Sean Harmer wrote:
> Hi,
>
> On Sunday 02 February 2014 17:09:24 Michal Lazo wrote:
>> Hi
>> I found pretty nice article about shaders optimization in arm GPU drivers
>>
>> For example Unity3d use it in there shaders compiler
>> http://aras-p.info/blog/2010/09/29/glsl-optimizer/
>>
>> https://github.com/aras-p/glsl-optimizer
>> https://github.com/stskeeps/glsl-optimizer
>>
>>
>> As it is really easy to add it to Qt OpenGL module.
>> Many people simple don't write really optimised shaders and this can help.
>
> Looks interesting. If you'd like to submit a patch please add me as reviewer.
> In any case this should be an optional step as we've had a few cases where
> some embedded drivers mis-compile/mis-optimise GLSL shaders and so we would
> not want to have this enabled for all systems I think.

HAM radio enthusiasts are after as well!:
http://www.cruisersforum.com/forums/f134/weatherfax-97533-3.html

And this was the (windows) tip of the iceberg:
https://sdr.osmocom.org/trac/wiki/fosphor

GLSL Optimizer is important.

Chris

>
> Cheers,
>
> Sean
>
> --
> Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - Qt Experts - Platform-independent software solutions
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>

_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


More information about the Development mailing list