this post was submitted on 24 Jan 2026
8 points (90.0% liked)
Gaming
33596 readers
78 users here now
From video gaming to card games and stuff in between, if it's gaming you can probably discuss it here!
Please Note: Gaming memes are permitted to be posted on Meme Mondays, but will otherwise be removed in an effort to allow other discussions to take place.
See also Gaming's sister community Tabletop Gaming.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
"have optional calls" is not really how this works.
If you're in an interpreted language, like python, java, c#, you don't have to do anything, because they compile for the architecture they're running on already, i.e. using whatever CPU features are available.
If you have a compiled language, and your users compile themselves, then they are choosing which CPU features to use, so you don't have to do anything. If you distribute pre-built binaries, then you simply have to compile it once for each architecture you want to support, and distribute the correct binary to each user (usually done with an installer).
For graphics, your graphics API also already takes care of using system-specific instructions, and shaders are compiled by it before/while running also using system-specific instructions.
So there's really no "optional" path that you have to specifically put into your program, so nothing like
The reason I ask is because I know linux does something like that to make sure it is at maximum performance.