How shaders are compiled?
Sławomir Lach <[email protected]> Sat, 01 Apr 2023 20:50:37 +0200
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <[email protected]> |
I only asks. How shaders are compiled? I known, there is many problems with shader=20 compilation, like users are forced to stay in game menu to wait for shader= =20 compilation are done. I known, many software uses approach with two or more compilers. For exampl= e,=20 Mozilla Firefox launch fast-compiler firstly to be able to ran JavaScript=20 scripts and recompile scripts by compiler do better optimizations. Maybe Mesa should do the same? And yet. We have shader cache, so you could= =20 implement daemon which runs on system-idle state and recompile not-well- optimized shaders to more optimized versions. When game asks Mesa to compile shader, it does: 1. Ran fast-compiler 2. Register output of 1. to daemon 3. Run compiler doing good-optimizations And daemon do good optimization on system-idle. Best regards, Lach S=C5=82awomir.