While loop looping to much

basically I have a while loop that runs part of my match and I’ve made my timer for the match work by going down 1 second at a time but the loop is still going very fast and its showing in the peformance why is this happening?

code:

It’s not the while loop. It’s the Heartbeat event. Heartbeat does not wait for the thread to finish

Nvm I had to redo the whole thing but it’s working now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.