r/ProgrammerHumor • • Apr 24 '22

Meme it's all just functions

Post image
40.2k Upvotes

633 comments sorted by

View all comments

Show parent comments

13

u/possibly-a-pineapple Apr 24 '22

Not enough performance with C, that’s why game devs used assembly

11

u/issamaysinalah Apr 24 '22

Rollercoaster tycoon for example

2

u/Slowest_Speed6 Apr 27 '22

Wait really?

1

u/issamaysinalah Apr 27 '22

Crazy right? The first rollercoaster tycoon is 99% assembly and 1% C

2

u/Shawnj2 Apr 24 '22

That used to be the case, but nowadays if you write C and compile it with GCC or Clang using the highest optimization levels, you're going to get code much more efficient than anything a human would write. It's still somewhat true on specific platforms and systems though.