C#C
C#3y ago
Rainys

❔ How to limit while loop updates per second amount

What i mean by the name is that: for a console application i'm developing (if you're wondering it's a game's server) i need a function something similar to say, Unity's FixedUpdate(), so that the function only happens somewhere like 50 times a second, because while (true) happens every single frame. or in layman's terms: How do i limit FPS?
Was this page helpful?