DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.88k stars 251 forks source link

Replace busy wait loop with a sleep #547

Closed pzychotic closed 2 months ago

pzychotic commented 3 months ago

Pull Request Type

Description

I noticed one of my CPU cores running at 100% when in the main menu. A quick profiling found a loop just busy-waiting for some time to pass that I replaced by a sleep for that amount of time (50ms).

Related Issues

Screenshots (if applicable)

Checklist

Additional Comments

winterheart commented 2 months ago

Tested on Linux, works as intended.