Rising World

Rising World

Why does the sky cause a GPU spike?
Look, I may be stupid, I may currently be high, and I may also not know a lot of things about Unity, but this is driving me crazy. Should I just forget about it and not let it get to me? Yes. Will I? No.

Anyway, I have a rather particular setup (PopOS, 14th gen intel i9, 4080 laptop gpu, 32 GB RAM) but I haven’t encountered any wine issues as far as I can tell or anything of the sort. For the most part I just let Proton do its thing, and if a problem crops up it’s usually pretty obvious. Not always of course, but regardless I have a hard time believing that wine is at fault. Admittedly I haven’t tested it yet, but whenever wine causes performance issues it’s usually more widespread, and it hasn’t shown any classic “Oh it’s cuz of DXVK!” signs. I am a new linux user still (I make it a point to know how things work but I’m only like 9 months in) and… it’s linux so… well, it’s linux.


So, take everything with a rock of salt, buuuuuut every single ♥♥♥♥♥♥♥♥♥ time I look at the sky, the GPU percentage goes from 40% to like 70% and sometimes even 100%! I’m losing like 2 fps from this nonsense! Is that important? NO!

Also, I don’t think it’s the volumetric clouds but I do know that it can help, sometimes. Other times there are no clouds and it’s still 100%, and it depends on the amount of sky that takes up the screen. Part of the reason it’s making me more nuts than usual is because, with this problem, the dense forests are actually the easiest to render!

Some…how………….?
< >
Showing 1-9 of 9 comments
Jul 31 @ 4:42am 
Hmm... the sky itself shouldn't be too expensive to render... the most "expensive" features there are volumetric clouds and volumetric lighting. Especially the clouds can have a considerable impact on the performance, especially when the "Volumetric Clouds Quality" is set to "Very high" (even if little to no clouds are visible, calculating them still has a performance impact).
Although strictly speaking, the volumetric clouds aren't part of the sky, they're part of the game world (it would be interesting to know if looking at the sky is still expensive when you're above the cloud layer, typically on very high mountains or when using flying mode).

Usually rendering the sky alone is still less expensive than rendering the game world. If there is no fps limit, the GPU load will certainly go up when looking at something that's not very demanding. But it doesn't make sense that you're losing fps (although 2 fps probably isn't enough for a meaningful benchmark).

What's your usual framerate? Did you set a frame limit in the settings? Maybe send a report, it might contain more information about what's going on :) To do that, look at the sky (when experiencing the issue), then hit ESC and press the red report button in the lower right corner of the screen.
Oh, I will be sure to send the report. The strange thing is that I’ve capped it to 60, and usually it’s perfectly fine (maybe a random spike for a second after running for a while, but not anything crazy) and all of my settings are medium to high. It’s usually very stable.

I don’t know if it was a very strange one time thing (or if I just happened to notice a pattern when I did) but it’s been driving me nuts. Thank you for the sanity check!
I can't seem to reproduce the issue now. Chock that up to marijuana and cosmic rays I suppose!

If it ever happens again I'll be sure to get a report. Thank you anyway.
I got it to happen again and sent a report. Another thing of note is that the pause menu also rises gpu% significantly with or without the glitch occurring. However, it seems to rise more with the glitch active. Finally, my cpu also seems to spike a bit (the max cpu% stat on Steam's performance monitor noted a 53% activity spike at any given second while looking at the sky). The normal max% is closer to 22%.
Aug 4 @ 12:31pm 
Sorry for the late response, but thanks for the report! Everything seems to be fine there, there is nothing suspicious. Actually it seems your GPU is nowhere near running at full capacity: The most "expensive" thing is probably the resolution, but other demanding features (like clouds) are even set to low... considering it's a laptop GPU, I could imagine that it's automatically reducing its clock speed (because there is not enough work for it to do^^). Under these circumstances, even smaller changes in the scene (e.g more parts of the clouds being visible or weather transitions) can have a relatively large increase in load.

Is it correct that the game is almost always running at the fps cap (~60)?

I would recommend switching to Proton: right now the game is running on Steams native Linux Runtime - unfortunately this forces the game to run with Vulkan (which is terribly implemented in Unity) and features like DLSS are not available...
You can change it by rightclicking on the game in Steam -> Properties -> Compatiblity -> Select Proton.

After doing that, I'd also recommend to turn on DLSS in the graphics settings, that will further reduce the load on the GPU (and on max quality, there is almost no visual downgrade, instead you get free anti-aliasing) :)
Oh yeah I noticed the linux 1.0 runtime. I have no idea how that happened considering the default is proton experimental. Also yes the gpu is very much not maxxed out and I already lowered some settings by the time I sent that report. Also yes, the laptop gpu does that but it's usually not noticeable.

I looked in the player log too and also saw squat (but obviously I don't know a lot about unity). But the game for the most part runs totally fine even with the rather archaic runtime lol. The only time the gpu would ever max is with the glitch/weird interaction my pc had with unity. I'm not sure what to call it at this point but I don't think it's a big deal honestly, especially considering your workload as an indie dev.

Regardless, if I find something more concrete I'll give an update, but I don't think it's worth all this effort honestly. Thanks for your help anyway. I really appreciate it!
Well, I suppose I have something a bit more concrete to share. The problem seems to occur regardless of what compatibility layer I used (though interestingly enough Proton 11.0 managed to fool your reporting system into thinking it was Windows DX12). I did it with max settings, and I did it with minimal settings. It happened either way.

Another odd thing is that switching the runtime seemed to cause more fps fluctuation. Also, at least as far as I understand DXVK and the like, Linux will almost always prefer Vulkan but use a simulated version of DX12 (or any DirectX for that matter) through the DXVK translation layer. the only alternative would be OpenGL or some derivative of it. I guess I will see if it happens in OpenGL now (I imagine it will) or if tweaking the Proton settings will fix it any. I'm perplexed to be honest.
OMG OpenGL and Wined3d completely destroyed the colors and made it boot using the integrated instead hahahahaha

Well, I still don't know what the problem is, but it might involve Wine? The gpu usage is still very high but it changes slightly (by a couple percentage points) depending on the Proton version.
Alright, for some reason the problem improved after switching from xwayland to just wayland. I'm still not sure what's causing this, but I don't think it's a game bug at this point. Just a very strange wine problem.

Edit: For some reason steam thinks that it's 1.0 scout runtime is what is best for this title? I thought I turned it on somehow but if I turn off the "force a specific compatibility tool" option then that's what Steam goes with, which sure ain't the case for my other games.
< >
Showing 1-9 of 9 comments
Per page: 1530 50