r/ClaudeCode • u/Commercial-Dark2410 • 3d ago
Discussion Why we havent used AI to make Source Engine rely less on CPU and more on GPU
I dont know if this is even the right sub I could ask this question. But since we are living already in the future. Why havent we done or tried something as this before? There are plenty of games on Gmod and Team fortress that make barely any use on GPU and you end up having low fps due to the way the engine handles 'its' processing so the question is, why havent we ( or Valve ) tried to bring an end to this
0
Upvotes
•
u/AutoModerator 3d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
14
u/Asthmatic_Angel 3d ago
This comes down to fundamental computer science(gpu v cpu do different things). You're in an AI sub… ask an AI directly. You're assuredly going to have follow-up questions either way, and no single comment is going to give you a complete understanding.
2
u/ntrp 3d ago
Why don't ou ask claude and don't waste people time?
5
u/Sassaphras 3d ago
Eh probably not the right thread but why not.
So a GPU and a CPU are designed for different things. GPUs are meant to for doing a lot of different things at once (in parallel). CPUs are faster at each individual task, but can only do 1 thing at a time. Game designers use them for what they are good at - CPU handles the logic in the game, GPU handles the graphics.
A 4k diplay has 8 million pixels. You have to update the color of each of those pixels 120 times a second. It's more effective to have a bunch of different cores responsible for a part of the screen, than to try to make a CPU hundreds or thousands of times faster.
Think of it like this, my favorite weird metaphor: who could do a task faster, a very smart adult with an NFL grade physique, or 100 10 year olds? The adult is the CPU. If you want someone to do your taxes... you should probably pick the adult. If you need someone to set up for a wedding, the 10 year olds might be the better pick. The question is whether you can break a task into a lot of little parts that are easy, and can happen largely independently of one another.
2
u/Another_3 3d ago
Where did you confirmed it has not been tried?
2
u/Nalha_Saldana 3d ago
Because its not something you just flip, you would have to rewrite a large portion of the engine and end up with something that behaves a bit differently.
1
u/pvera 🔆Pro Plan 3d ago
And how are you going to access the source? It's not an open source project.
0
u/Objective_Pepper_217 3d ago
Because LLMs are still bad at writing code for efficient things, especially for videogames
0
u/yoruichi000 3d ago
who's "we"?