performance fix
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-03-27 15:16:13 -04:00
parent 253a2461b6
commit 3b0e39d169
4 changed files with 8 additions and 3 deletions

View File

@ -1333,6 +1333,10 @@ Tabs for editor view
ImGui drag-and-drop into viewport functionality
Normalized mouse pos lookup function
(03/27/2025)
Disable fluid sim for performance
Increase fall delay
# TODO

View File

@ -172,9 +172,10 @@ public class Globals {
public static boolean RUN_DEMO = false;
public static boolean RUN_CLIENT = true;
public static boolean RUN_HIDDEN = false; //glfw session will be created with hidden window
public static boolean RUN_AUDIO = false;
public static boolean RUN_AUDIO = true;
public static boolean RUN_SCRIPTS = true;
public static boolean RUN_PHYSICS = true; //toggles whether physics is run or not
public static boolean RUN_FLUIDS = true; //toggles whether fluid physics is run or not
public static int clientCharacterID;
public static NetConfig netConfig = null;

View File

@ -39,7 +39,7 @@ public class ServerFallTree implements BehaviorTree {
/**
* The minimum frames to wait before scanning if it should activate due to gravity
*/
public static final int MIN_FRAMES_BEFORE_ACTIVATION_SCAN = 3;
public static final int MIN_FRAMES_BEFORE_ACTIVATION_SCAN = 10;
/**
* The minimum frames to wait before playing landing animation on fall

View File

@ -73,7 +73,7 @@ public class ServerFluidManager {
ServerTerrainManager serverTerrainManager;
//controls whether fluid simulation should actually happen or not
boolean simulate = true;
boolean simulate = Globals.RUN_FLUIDS;
@Exclude
/**