Jump to content

[Release] Rendering performance increasing edits


Recommended Posts

For those of us with GPUs that are below 'potato' and would like to squeeze more out of the game to hopefully get a more playable experience, then this is for you.

 

Changes done to the base Assembly-CSharp.dll in this mod give:

  • Adjustable far clip plane (left arrow + right arrow keys to adjust it in-game, default 20 units).
  • Removes all post processing effects from happening (things like lava heat waves, blur effects).
  • Removes some lights related to a specific shader used in the game (dynamic lights are murder for bad GPUs).

Changes done to the code base are as followed, in a markup I'm comfortable with using.

Spoiler

Klei.HotLava->GameCamera
    Awake()
        this.m_Camera.farClipPlane = 20f; // Add after this.m_Camera is initialized in this function.
    m_Camera access from 'private' to 'public' // Save module, close all, reopen.  This propogates the effects for further changes below.
Klei.HotLava.Character->PlayerController
    UpdateDebugButtons()
        // Add these after the first if check for 'IsMine' and 'InputEnabled' etc.
        if (InputManager.GetKeyUp(KeyCode.RightArrow))
        {
            Singleton<LevelSingleton>.Instance.m_GameCamera.m_Camera.farClipPlane += 1f;
        }
        if (InputManager.GetKeyUp(KeyCode.LeftArrow))
        {
            Singleton<LevelSingleton>.Instance.m_GameCamera.m_Camera.farClipPlane -= 1f;
        }
UnityStandardAsets.ImageEffects->PostEffectsBase
    Start()
        this.NotSupported(); // Replace the 'resource' function with this.
Klei.HotLava.Gameplay->CheckpointVisualization
    OnSetState()
        bool flag = false; //SystemInfo.graphicsShaderLevel > 30;
Klei.HotLava->LevelSingleton
    SetRuntimeGraphicsTweaks()
        Comment out all checks for SystemInfo.graphicsShaderLevel.
"-"->LavaPortalVisualization
    Awake()
        Comment out all checks for SystemInfo.graphicsShaderLevel.

 

 

Download (Beta 277434): Assembly-CSharp.dll

Older versions:

Spoiler

Download (Beta 276327): Assembly-CSharp.dll

 

How to install:

  • Go to "Steam/steamapps/common/Hot Lava/archive/build/hotlava_Data/Managed" folder in explorer.
  • Either rename or copy+paste to make a duplicate of "Assembly-CSharp.dll" for backup purposes.  You can alternately skip this and use Steam's verify integrity of files to get it back to vanilla base should you want to revert without a backup.
  • Move the downloaded replacement file into the folder, and enjoy.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...