fix more fps drop

This commit is contained in:
D1GQ committed 2024-08-02 21:46:55 -05:00
1 parent 1bfd225fcf
commit c718b467c5
1 file changed
+3 -3
+3 -3
View File
@@ -14,8 +14,8 @@ class PlayerControlPatch
{
public static float infotime = 0f;
[HarmonyPatch(nameof(PlayerControl.FixedUpdate))]
[HarmonyPostfix]
public static void FixedUpdate_Postfix(PlayerControl __instance)
[HarmonyPrefix]
public static void FixedUpdate_Prefix(PlayerControl __instance)
{
// Set up player text info
var NameText = GameObject.Find($"{__instance.gameObject.transform.name}/Names/NameText_TMP");
@@ -59,7 +59,7 @@ class PlayerControlPatch
if (infotime <= 0)
{
SetPlayerInfo(__instance);
infotime = 0.4f;
infotime = 0.6f;
}
if (GameStates.IsInGame && GameStates.IsHost)