We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b4b632 commit 4f92185Copy full SHA for 4f92185
1 file changed
Runtime/DevConsoleMono.cs
@@ -878,6 +878,19 @@ private void InitBuiltInCommands()
878
}
879
));
880
881
+ AddCommand(Command.Create<int>(
882
+ "fps_target",
883
+ "fps_max",
884
+ "Query or set the target framerate.",
885
+ Parameter.Create("targetFrameRate", "Frame rate the application will try to render at."),
886
+ i =>
887
+ {
888
+ Application.targetFrameRate = i;
889
+ LogSuccess($"Target frame rate set to {i}.");
890
+ },
891
+ () => LogVariable("TargetFrameRate", Application.targetFrameRate)
892
+ ));
893
+
894
#endregion
895
896
#region Screen commands
0 commit comments