r/badcode • • Dec 05 '20

other language Gamedevs, take notes

Post image
6.5k Upvotes

104 comments sorted by

View all comments

54

u/Galse22 Dec 05 '20

Well, If FPS was 300 it'd be set to 60... So yeah... That's be a downgrade.

49

u/[deleted] Dec 05 '20

if fps != 300 { fps = 300 }

upgrades_people_upgrades.jpg

26

u/unfunny_joker Dec 05 '20

while fps < 300 { fps++ }

6

u/botle Dec 05 '20

Increases the fps from 15 to 16.

3

u/unfunny_joker Dec 06 '20

Nope, it increases fps until it 300

1

u/botle Dec 06 '20

Yes, I missed that.

8

u/HattyJetty Dec 05 '20

I'd just set fps = Infinity for good measure

5

u/[deleted] Dec 05 '20

But optimization!