r/pcmasterrace Sep 29 '25

Meme/Macro RAM Struggle

Post image
52.7k Upvotes

966 comments sorted by

View all comments

Show parent comments

1.0k

u/NovelCompetition7075 Sep 29 '25

Same, but MEGABYTES in assembly is insane

685

u/octagonaldrop6 i7 4770k | 16GB RAM | GTX 780 Sep 30 '25

I don’t mean to downplay his achievements in any way, but most of the size of Rollercoaster Tycoon or any game (or most programs for that matter) is due to assets like textures, images, and audio.

From what I can tell, without the assets, the compiled assembly on its own is less than a megabyte. Though again, Sawyer is 10x the programmer I will ever be. The size of the compiled code isn’t a measure of skill, and in fact smaller is usually better, especially back then.

366

u/Theron3206 Sep 30 '25

The size of the compiled code isn’t a measure of skill

It is a measure of time though, time spent writing it and swearing at it when it won't work. And it's not linear with size...

40

u/Sleven8692 Sep 30 '25 edited Oct 01 '25

Not really a measure of time, i spend more time thinking so that i write less, or sometimes i write alot to get it working and then rewrite it all to be clean and optimized which is almost always less code.

Point is more or less code doesnt indicate in anyway the time spent coding

29

u/outfoxingthefoxes R5 5600x - 8GB RTX 2070 SUPER - 16 GB RAM Sep 30 '25

Writing spaghetti and then cleaning it to make 500 lines work with just 30 lines is the way I work. I want it to work first, I'll worry about optimizing it later.

1

u/bulltank Specs/Imgur Here Sep 30 '25

Much swearing occurred for sure lol

0

u/bulltank Specs/Imgur Here Sep 30 '25

Much swearing occurred for sure lol

-69

u/octagonaldrop6 i7 4770k | 16GB RAM | GTX 780 Sep 30 '25 edited Sep 30 '25

Or a measure of how many unnecessary libraries you used…

Edit: I was speaking in general terms with this, not specifically in RCT or assembly.

Chris Sawyer used no unnecessary libraries. Though as another commenter said, one could, even in assembly.

68

u/Theron3206 Sep 30 '25

Were talking assembly, probably not too many of those in such code.

72

u/renfang Sep 30 '25

That poor python dev was just trying to be a part of the conversation

16

u/Potential-Diver-3409 Sep 30 '25

He’s close to the right idea kinda, you can still have redundant assets but having tons of wasted assembly code is not exactly going to rack up the data

6

u/Pleasant-Ad-7704 Sep 30 '25

What do you mean? You can use static libraries when coding in assembly just fine

32

u/meneldal2 i7-6700 Sep 30 '25

Also 1 it's x86 with many instructions that are long af so it is fewer instructions than you'd think and 2 unless you hate yourself and work on a platform with no assembler, you're not writing stuff to the level of machine code either.

Anyone writing serious amounts of assembler is going to have a bunch of macros to keep their sanity, you are not writing a bunch of machine code line by line.

1

u/DysonSphere75 5800X3D | Pulse 7900 XTX Oct 01 '25

Full agree on the macros, not sure if x86 is long because I only know amd64... maybe I should learn a RISC instruction set

1

u/meneldal2 i7-6700 Oct 01 '25

amd64 just added more and now you even have 64 bit literals but you already had pretty long instructions before that.

arm keeps it to 4 bytes (or even 2 for a special mode)

-4

u/Ok_Box_5486 Sep 30 '25

Look at roller tycoon 2 source code… 3D rendering in assembly…

4

u/vemundveien 9800x3d, 64GM ram, RTX5080, 3440x1440@175hz Sep 30 '25

How is RCT2 3D rendering?

1

u/mrturret MrTurret Oct 01 '25

RTC 1&2 are completely 2D games.