Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

FPS Counter Script

A Config Script for Baldi's Basics

No ads for members. Membership is 100% free. Sign up!
30 389 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using UnityEngine;

using UnityEngine.UI;

public class FPSCounterScript : MonoBehaviour

{

public void Update()

{

if (Time.deltaTime != 0f)
{

this.deltaTime += (Time.deltaTime - this.deltaTime) * 0.1f;

float f = 1f / this.deltaTime;

this.fpsText.text = "FPS: " + Mathf.Ceil(f).ToString() + " FPS";

}

}

public Text fpsText;

public float deltaTime;

}
Ngl i made this because this section has been super stale so yeah. This is the code for Fps, CREDIT FILENAME3 FOR THIS
Sign up to access this!
  • Mr.Baldi avatar
    Mr.Baldi Joined 1y ago
    Offline
    385 points Ranked 48239th
    6 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    access_time 9d
    Assets/Scripts/Assembly-CSharp/Fps.cs(5,33): error CS0246: The type or namespace name `Monobehavior' could not be found. Are you missing an assembly reference?
    That's ME! Always me...
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Originator
Filename3
Filename3 Joined 4mo ago
Offline
1,822 points Ranked 21176th
10 medals 2 rare
  • Returned 1000 times Medal icon
  • Reached 50 subscribers Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • Received thanks 5 times Medal icon
  • Reached 10 subscribers Medal icon
Discoverer

Submitter

RealT5mpler avatar
RealT5mpler Joined 8mo ago
Not on right ok
401 points Ranked 47808th
15 medals 3 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
RealT5mpler
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

menu

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 264
  • 4
  • 10d
  • 10d

WiPs by Submitter

menu

More Other/Misc Scripts