mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
fix more fps drop
This commit is contained in:
1 parent
1bfd225fcf
commit
c718b467c5
1 file changed
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user