Optimizations

Gas Giant Forge comes with a number of options to balance quality and performance.

Render Resolution

The biggest optimization is selecting the rendering resolution of the gas giants.

1

Find the SgtVolumeManager component in your scene

This will usually be in a root GameObject in your scene, or a child of the Demo GameObject if you're using one of the demo scenes as a base.

2

Adjust the Downscale setting

A setting of 1 means full resolution.

A setting of 2 means half width/height or ¼ the pixels and therefore 4x performance.

A setting of 3 means third width/height or ⅑ the pixels and therefore 9x performance.

etc.

Keep in mind higher Downscale values will change the visual quality of the gas giants, for example:

Downscale = 2
Downscale = 4
Downscale = 8

Cloud Resolution

Another optimization is the resolution of the cloud texture.

1

Find the SgtCloud component in your scene

This will be in a child GameObject of your gas giant.

2

Adjust the Resolution setting

A setting of 1024 means the cloud texture will be 1024x1024 pixels.

You can make this 2048 for higher detail, or 512 for lower.

Sky Detail

Another optimization is the ray marching density of the sky and clouds.

1

Find the SgtSky component in your scene

This will be in a child GameObject of your gas giant.

2

Adjust the Detail setting

The default setting is 2.

If you set this to 1, then the amount of rays will be halved, and the gas giant will render with around 2x performance.

If you set Detail too low, then you will end up with a grainy/noisy gas giant, so carefully test any changes.

Fluid Simulation Initial Texture Resolution

If you make a fluid simulation for a gas giant, you can Bake it into an InitialTexture so that it instantly starts in a stable state.

However, this texture takes up space and therefore increases your build size.

If this is an issue, then you can decrease the resolution and/or add compression to this texture. To do this, simply go to your InitialTexture's texture import settings, and change the MaxSize or Compression settings.

Changing the resolution or compression too much may change the way the gas giant looks when your game starts, so please verify that the change in initial quality is acceptable.

Last updated