What’s happening behind the “compiling shaders” progress bar 👀
28K followers
23,904 views
17 Comments
Comments from the original post on X (Twitter)

@KenneyNL
Interesting! Is this a choice you're making to compile the shaders this way in order to prevent hick-ups?
29 likes

@walaber
Exactly, yes. To reduce stutter in-game when new materials need to be compiled, and also to reduce the first load time into subsequent areas of the game (which would pause for a long time almost entirely because of shader compilation). This method is still “leaky” tho in that various permutations and materials that manifest in-game aren’t caught yet. I still need to track down and put some more dummy scenes in there to catch the offenders. It would be nice if there was a better way to do it (in Godot) but at the moment this is my best solution.
25 likes

@KenneyNL
That's super interesting, I've seen it done in some triple-AAA titles. Good job!
8 likes

@bcjordan
Warming cache... (speed runs entire game)
6 likes

@ThisIsDarkDax
I always thought it was tiny goblins with hammer and nails tbh
4 likes

@rjamie0820
forgot what game it is but this actually reminds me of a different game which does a similar method but they used a recording of their inputs of their gameplay going through the level to load all parts of the level before you can start playing
3 likes

@Splagoon
you clever devil!
3 likes

@jam3s6403
I hope that stays in the game because it's a nice way of communicating to the player that compiling shaders is ACTUALLY DOING SOMETHING. Sitting and waiting for a progress bar is incredibly boring and for some games it makes me question if they've crashed during compilation.
2 likes

@TheNecromatoma
I wish all games did this so the wait isn't so boring
1 like

@_nieGRAMotny_
Love it
1 like

@0xabedef
So cool!
1 like

@RukiaTech
This reminds me Dolphin has an special shader that emulates the entire GC rendering thing and draws with that *while* compiling specialized shaders by default, it's quite cool
1 like

@Decrozen
wish one day this could be an option on rpcs3
1 like

@Mingus55555
Bro got that roblox 2018 bloom filter
1 like

@walaber
The game (for wishlisting please thank you)

@furkanbytekin
Haha yess

@JosiahJackWJJ
If it takes longer than 1 second you are clearly using the wrong tools to talk to your gpu