Compute Shaders: Optimize your engine using compute / Lou Kramer, AMD

  Рет қаралды 19,186

4C Conference

4C Conference

Күн бұрын

This talk will give an in-depth introduction to compute shaders - how do they differ from vertex and pixel shaders from a programming and from a hardware perspective? What are the typical use cases for compute shaders, what are their advantages and disadvantages - how can you make use of them for your game engine to improve the overall performance? Learn how to write optimal compute shader code which is aware of the structure of GPUs and what functionality the hardware exposes. After the explanation of the basic concepts, we will walk through a practical example which uses a compute shader to perform downsampling, comparing it with an equivalent pixel shader solution.

Пікірлер: 18
@LahceneBelbachir
@LahceneBelbachir 5 жыл бұрын
Great talk, helped me a lot writing my first compute sahder, thanks.
@TheHardSteppa
@TheHardSteppa 3 жыл бұрын
Great talk! Jam packed with important concepts.
@WindWolf28
@WindWolf28 2 жыл бұрын
Thank you, this was a very informative talk!
@JoeBain
@JoeBain 4 жыл бұрын
I'd love to see the source code for the mip map generators.
@DigitalDuo2211
@DigitalDuo2211 Ай бұрын
Fed goops FTW!
@DukeAbbaddon
@DukeAbbaddon 5 жыл бұрын
Lou the copy back is quite important for games developers using the CPU to perform for example user impute like hacking consoles ... "If you anyway transfer the texture from the CPU to the GPU, and you already have the mips or have enough CPU spare time to compute them on the CPU, it makes probably sense to do so. But if you only have the texture on the GPU, and are only using it on the GPU, there is no reason to generate the mips on the CPU. Because this would add at least 2 synchronization points plus the PCI transfer costs for GPU to CPU and CPU to GPU. This overhead can be completely avoided by just computing the mips on the GPU. Thanks, Lou" science.n-helix.com/2019/06/vulkan-stack.html
@yonjuunininjin
@yonjuunininjin 5 жыл бұрын
I think the beginning (what are compute shaders in the graphics pipeline) is much better explained in this video kzbin.info/www/bejne/eHqZkHd_mq17iK8
@PixelThorn
@PixelThorn 4 жыл бұрын
That one pixel shader nerd got triggered
@guywithknife
@guywithknife 3 жыл бұрын
hahaha yeah, and I feel he misunderstood a key point. You can see on the second performance chart that at the end, there IS a loss of parallelism, but its a slow ramp down. You still can run all the different thread groups in parallel, you can still run (as Lou said) the lower mip levels in parallel with some of the still running higher mip levels. So, besides the removal of the synchronisation, there's also much better parallel pipelining between mip levels.
@thegabrielcho
@thegabrielcho 3 жыл бұрын
When will I understand all this stuff? :(
@amicloud_yt
@amicloud_yt 3 жыл бұрын
Once you have practiced it enough.
@DukeAbbaddon
@DukeAbbaddon 3 жыл бұрын
compute shader stage attack for quality enhancement & game mechanics: Physics renderer & gravity I think that we need compute shaders as our angle of attack on the quality of the final output on the console.. The reason i believe this is because you strictly stated that resources can be saved like mipmaps & tessellation & audio... But we need immersive and we need the resultant usable for : Shader cache.. Processing of optimal vector numbers combined with localised & stored vertices arrays... There are many reasons to invoke the pipeline at the compute rather than the graphics shader pipeline.. Execution pipelining, Static resource upgrade & image/Texture & audio Processing of data & storage optimisation or drive spin management... Encryption & High performance computing nodes. There are many reasons we need to aggressively work the shader market: HPC ML Science Gaming Processing is not always about temporary results; Good ones are preferred. RS science.n-helix.com
@TryNotToHate1
@TryNotToHate1 2 жыл бұрын
I’m glad the smart people are still around
@YourCRTube
@YourCRTube 3 жыл бұрын
Good talk, but no code, c'mon.
@Alkis05
@Alkis05 3 жыл бұрын
Nice talk, but that accent... Thicc. Couldn't understand a few parts.
Lou Kramer - Compute shaders - optimize your engine using compute
48:02
Games Gathering
Рет қаралды 3,6 М.
Compute shader 101
1:22:52
Raph Levien
Рет қаралды 26 М.
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Shader Performance Optimization - UE4 Materials 101 - Episode 7
27:53
Gameplay components caching / Alexander  Balakshin, Sperasoft
36:49
Compute Shaders || Lou Kramer || AMD
57:23
Game Industry Conference
Рет қаралды 8 М.
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 589 М.
Introduction to Vulkan Compute Shaders
21:39
İlker
Рет қаралды 10 М.
All the pipelines - journey through the GPU | Lou Kramer AMD
55:33
Game Industry Conference
Рет қаралды 10 М.