-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugin.cs
26 lines (21 loc) · 864 Bytes
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using BepInEx;
namespace Framesaver
{
[BepInPlugin("com.gaylatea.framesaver", "SPT-Framesaver", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
public Plugin()
{
// Here we experiment with just straight disabling shit to save FPS.
// This seems to disable a bunch of expensive rigid body physics
// calculations that don't have much of an effect on gameplay.
GClass672.GClass674.Enabled = false;
new DontSpawnShellsFiringPatch().Enable();
new DontSpawnShellsJamPatch().Enable();
new DontSpawnShellsAtAllReallyPatch().Enable();
new AmbientLightOptimizeRenderingPatch().Enable();
new AmbientLightDisableFrequentUpdatesPatch().Enable();
new WeaponSoundPlayerDisablePatch().Enable();
}
}
}