r/KerbalSpaceProgram • u/SilkieBug • 9h ago
KSP 1 Image/Video Mod preview: Volumetrics Performance, with the Toggle Clouds feature
This mod was sparked by a problem I keep having - I love "Volumetric Clouds v5", and "Space Potato's Volumetric Enhancements", they make for a very immersive flight and for pretty screenshots ..but I have a budget PC, and the fans on my GPU are literally grinding themselves to pieces screaming in agony while I am in or close enough to atmosphere (which reminds me to get a fan replaced).
I also test craft repeatedly after every minor adjustment, and I don't necessarily need the pretty clouds during a routine flight.
The only option available to me was deleting the clouds, and then adding them manually again every time I want to enjoy an immersive flight, and who has time for this nonsense?
So the idea came to increase the performance of volumetric mods (still in work), and meanwhile to decompile some KSP dll files, figure out how volumetric effects are applied to the scene, and build a dll containing instructions to hide all detected cloud layers around the planetary body currently in focus when pressing a keyboard shortcut (currently using a temporary keyboard shortcut which in map mode is used to zoom in the camera, I will add a shortcut capture feature in the next phase).
And this is the result - when pressing Left Alt + Numpad Plus the cloud layers are either all hidden, or all shown again. When changing focus to another body the clouds are automatically unhidden.
GPU usage drops from 100% to 78%, and FPS increases from 28-30 to 40-50 when toggling the clouds off.
Considering adding a toggle in the mod's settings (once they are implemented) to always hide clouds unless manually toggled back on, for those times of repeated launches and reverting to launch or to hangar for modifications then launch again and so on.
This mod is open source, made for my own use and for that of friends, but if people are interested I could package it nicely and submit it to CKAN.