#I want to set limit of FPS in client side, but no works because fishnet set to 500 FPS by default

27 messages · Page 1 of 1 (latest)

dusk meteor
#

Hi, please, i want know why i cant set limit to client FPS, fishnet override my setup?

`namespace GameSettings
{
public class FPSFrameRate : MonoBehaviour
{
[SerializeField]
private byte frameRate = 30;

  private void Start()
  {
     Application.targetFrameRate = frameRate;
  }

}
}`

silver canopy
#

You can set a frame rate limit in the ClientManager or ServerManager components, which you can add to the network manager if they aren't already there

dusk meteor
#

the client manager looks like this

#

with any property to setup or configure

silver canopy
#

Hmm, that's strange...

#

What about the TimeManager?

dusk meteor
silver canopy
dusk meteor
#

When attach the client manager to this object

#

and makes sense because i see where fishnet setup the fps to 500

#

but because these error i can setup the new frame rate

silver canopy
# dusk meteor

If you add the ClientManager and then restart Unity, would that fix it?

dusk meteor
#

wait me a moment please

#

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <0cbf2453ffe348b8bff59f7f22a27d4b>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUILayoutOption[] options) (at <0cbf2453ffe348b8bff59f7f22a27d4b>:0)
FishNet.Managing.Client.Editing.ClientManagerEditor.OnInspectorGUI () (at Assets/FishNet/Runtime/Managing/Client/Editor/ClientManagerEditor.cs:32)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <0cbf2453ffe348b8bff59f7f22a27d4b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

silver canopy
#

Is this on the latest FishNet version?

dusk meteor
#

i fix remove this line of code:

#

//EditorGUILayout.PropertyField(_remoteServerTimeout);

#

ClientManagerEditor.cs:32

dusk meteor
#

@silver canopy thanks!