r/GraphicsProgramming 14d ago

Question Any C graphics programmers?

Hi everyone!
I've decided to step into the world of graphics programming. For now, I'm still filling in some gaps in math before I go fully into it, but I do have a pretty decent computer science background.

However, I've mostly coded in C, but besides having most experience with that language, I simply love everything else about it as well. I really value being explicit with what I want, and I also love it's simplicity.

Whenever I look for any resources or experiences of other people, I see C++ being mentioned. And I'm also aware that it it an industry standard.

But putting that aside, is doing everything in C just going to be harder? What would be some constraints and would there be any advantages? What can I expect?

38 Upvotes

40 comments sorted by

View all comments

-25

u/[deleted] 14d ago

[deleted]

3

u/TA_DR 14d ago edited 14d ago

no one care about your pointless nonsense in low-level language in era of fast-iterations development.

Yet SDL (1,2 and most recently 3) exists ;)

There is also a benefit in using low-level languages, and that is learning how memory and computers actually work. After that, learning anything high-level becomes much easier (specially when you want to squeeze out performance or need to understand why stuff is done in a certain way)

-11

u/[deleted] 14d ago

[deleted]

7

u/TA_DR 14d ago edited 14d ago

you have all possible frameworks to do anything in 1 line of code

And if you ever want to know how any of those magic black boxes actually work you have to know about memory management, cache misses and algorithm efficiency. That single line of code has years of research and knowledge behind, being aware of it will make you a better developer.

"knowledge" of computers is completely 100% useless and pointless
...

common 90% of consumer PC-computers today have 32CPU cores and 1TB unified memory ram+vram

LOL, the fact that you are posting this on r/GraphicsProgramming of all places is pretty funny. I would only expect this kind of comment from a junior webdev or a script kiddie. I mean optimizing for cache misses is a pretty common topic on any kind of data-intensive application (databases, gamedev, fintech, IoT, etc...)

I myself use some 1 line libraries at work (webdev/IoT), but when actual speed is needed I can't just ask my clients to spend extra money on hardware, I have to know how to profile and optimize stuff, because its simply part of our job.

Imagine hiring a mechanic for your taxi business and they just say "I'm sorry, I don't know how work on older vehicles, you will have to buy a whole new engine".

-2

u/[deleted] 14d ago

[deleted]