389
submitted 10 months ago by kinther@lemmy.world to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] AdamEatsAss@lemmy.world 24 points 10 months ago

Maybe this will push more game developers to develop games that use multiple cores? I know nothing about game development.

[-] anlumo@lemmy.world 49 points 10 months ago

That has been happening for the last decade, but it’s really hard.

[-] drfuzzyness@lemmy.world 30 points 10 months ago

Most AAA game studios target consoles first. Their in-house or external porting teams will then adapt it for Windows, but by then major engine decisions will likely have already been made in service of supporting the Ryzen/RDNA based Xbox Series and PS5 consoles. Smaller studios might try to target all systems at once but aiming for the least common denominator (Vulkan, low hardware requirements). Switch is a bit of its own best when trying to get high performance graphics.

Multi threading is mostly used for graphics, sound, and animation tasks while game logic and scripting is almost always single threaded.

[-] deleted@lemmy.world 10 points 10 months ago

I bought Ryzen 3950x 16 cores 32 threads.

The first thing I noticed is some AAA games only utilize 8 cores. When you go multi threaded, it’s a matter of adding more threads which can dynamically selected based on the host hardware. AAA game studios are going the bad practice route.

I understand if they port an algorithm optimized to run on specific hardware as it’s. But, a thread count?

[-] Nighed@sffa.community 26 points 10 months ago

There is only so much that can be multi-threaded, beyond that the overhead just slows things down (and can cause bugs)

More simulation type games (city skylines etc) can multithread more (generally) while your standard shooter has much less that it can do (unless you have AI bots etc)

[-] Blackmist@feddit.uk 25 points 10 months ago

Plus it only takes one unthreadable task to bottleneck the whole thing anyway.

[-] deleted@lemmy.world 1 points 10 months ago

My point here is the developer managed to split the load evenly between 8 threads. How come they cannot do it for 16?

The keyword, evenly, means all 8 threads are at 100% while other 8 threads are at 1-2%.

[-] throwwyacc@lemmy.world 8 points 10 months ago

You'd need to look at the actual implementation, it's hard to speculate from a tiny amount of data. What game are you referencing?

And as someone who has done multi threaded programming I can tell you that for games it is unlikely that they can just add more cores. You need work that truly can be split up, meaning that each core doesn't needs work to do that doesn't rely on the results from another core

Graphics rendering is easy for this and it's why gpus have a crazy number of cores. But you aren't going to do graphics compute on the cpu

[-] deleted@lemmy.world 1 points 10 months ago

That was long time ago. I believe the game was BF1.

I know it’s hard to speculate but 100% cpu usage for solid 5~7 seconds only for 8 cores cannot be separate workload (single threaded). A spike is understandable tho.

The game play wasn’t impacted to be honest.

[-] jlh@lemmy.jlh.name 1 points 10 months ago

For that number to be 8 though suggests that there's just a "number of workers" variable hard-coded somewhere.

[-] Amir@lemmy.ml 6 points 10 months ago

it’s a matter of adding more threads

You can't ask 300 people to build a chair, and expect the chair to be finished 300x faster than if a single person would build it.

[-] Buddahriffic@lemmy.world 5 points 10 months ago

Also, to make it more accurate to what multi-threading does, none of those 300 people can see what the others are doing. And the most reliable ways of sending messages to each other involve taking a nap (though it might be brief, you might wake up in an entirely different body and need to fetch your working memory from your old body or worse, from RAM).

Or you can repeatedly write your message until you can be sure that no one else wrote over it since you started writing it. And the more threads you have, the more likely another one wrote over your message to the point where all threads are spending all of their time trying to coordinate and no time working.

[-] deleted@lemmy.world 2 points 10 months ago
[-] Buddahriffic@lemmy.world 1 points 10 months ago

I'm not familiar with their implementation but they'll likely have one of those mechanisms under the hood.

You can only avoid them in very simple cases that don't really scale up to a large number of threads in most cases. The one exception that does scale well is large amounts of data that can be processed independently of the rest of the data and the results are also independent. 3D rendering is one example, though some effects can create dependencies.

[-] deleted@lemmy.world 3 points 10 months ago

So 8 cores is doable but 16 no?

[-] vrighter@discuss.tchncs.de 1 points 10 months ago

ah, if only it were that simple. One can dream. The cpu is just one component in the system

this post was submitted on 02 Jan 2024
389 points (98.5% liked)

Technology

59559 readers
2199 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS