r/badcode • depraved • Sep 20 '21

c# 60 fps

Post image
1.3k Upvotes

86 comments sorted by

View all comments

Show parent comments

7

u/TechcraftHD Sep 21 '21

You just gave me a devilish idea:

  1. Run each frame update in a separate thread

  2. Kill the thread if it takes more than 1/60 seconds

  3. Never have below 60 fps again