Search
Setup for Free
C
C#
UpdateSpeed() happens too many times.
Original message was deleted
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,155
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
K
Kouhai
•
10/15/22, 3:08 AM
Update
Update
runs every frame
, so to make something happen once inside
Update
Update
you
'd need to another bool
K
Kouhai
•
10/15/22, 3:10 AM
You can have
private bool speedUpdated = false
private bool speedUpdated = false
and set it to true inside UpdateSpeed
, also change your if statement to also check if speedUpdated is false
private bool speedUpdated = false
private bool speedUpdated = false
Similar Threads
✅ Refactoring A Class With Too Many Responsibilities
C
C# / help
2y ago
✅ I TRIED SO MANY TIMES BUT STILL ERROR ;(((((((((
C
C# / help
12mo ago
Too many requests on pool, website is crashing
C
C# / help
3y ago
CreateReservation endpoint becoming too complex with too many paths. Split into multiple endpoints?
C
C# / help
3y ago