Dolphin, the GameCube and Wii emulator - Forums

Full Version: Ubershader difficulty with the increase of resolution
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
We're 100% sure that this isn't a case of GPU drivers splitting the ubershaders into separate shader variants because they've determined only a few code paths are ever taken, so are heavily optimising those paths and ignoring all the others until right when they're used?
(12-01-2018, 07:50 AM)AnyOldName3 Wrote: [ -> ]We're 100% sure that this isn't a case of GPU drivers splitting the ubershaders into separate shader variants because they've determined only a few code paths are ever taken, so are heavily optimising those paths and ignoring all the others until right when they're used?

I don't think so - as kinda the whole point of the ubershaders is their control flow depends on dynamic data in the buffers read by the GPU - and doing a tracing-jit style optimisation sounds like it'll need a massive amount of software (and hardware) infrastructure to work (and break out if their guesses are wrong) for a small gain in some extremely specific situations.

There may be variants based on driver-visible state, however (like blend mode or similar), but they tend to have a lot fewer combinations, so the variant cache tends to fill pretty quick as all the variants are generated pretty quick.
Shader variants can definitely be triggered by uniforms if the same value gets used for a long time, which seems like exactly the kind of thing using a new effect for the first time could upset.
(12-01-2018, 08:36 AM)AnyOldName3 Wrote: [ -> ]Shader variants can definitely be triggered by uniforms if the same value gets used for a long time, which seems like exactly the kind of thing using a new effect for the first time could upset.

Dolphin doesn't use uniforms directly though, but instead uniform buffers (which makes it harder for the driver to track changes and interpretation). I'd be extremely surprised if the driver tries to track that for this level of optimisation.
Hello

I can not find the "Hybrid Ubershaders Mode" in the graphics configuration menu.


Where could I find it? Note: I am using the most recent version of dolphin.
(12-01-2018, 11:34 AM)username Wrote: [ -> ]Hello

I can not find the "Hybrid Ubershaders Mode" in the graphics configuration menu.


Where could I find it? Note: I am using the most recent version of dolphin.

Hybrid Ubershaders = Async (Ubershaders).

You can find it with the others.
(12-01-2018, 12:19 PM)DJBarry004 Wrote: [ -> ]Hybrid Ubershaders = Async (Ubershaders).

You can find it with the others.

Not really,  "[color=#333333]Hybrid Mode Ubershaders is a marriage of Ubershaders and Asynchronous Shader Generation into a beautiful solution that takes the best parts of both with none of their flaws." as stated in the Ubershaders blog.[/color]

For that being said, Where could I find the "Hybrid Ubershaders" option?

Reference : [color=#333333]https://dolphin-emu.org/blog/2017/07/30/ubershaders/
[/color]
Pages: 1 2