Jump to content
The Dark Mod Forums

Threading discussion / testing with Cabalistic.


New Horizon

Recommended Posts

How is it that Cabalistic comes in and makes an instant threaded performance improvement (not sure how much performance gain, but he says "and it helped quite a bit") after years of talk and not a lot of change (that I could see)? And Doom 3 BFG: Edition has been GPL'd since 2012.

 

How far can multithreading go for TDM? Large open/outdoor scenes and adding additional AI seems to be the most FPS intensive things mappers can do. Can they be paralleled more?

 

More gamers than ever before are about to have 8 cores and 16 threads now that AMD's Ryzen 7 is out. Some of you may even lay down the cash for Threadripper with up to 32 threads, or the Intel Core i9 equivalents. Is it time for more threading, and will any of you be getting these CPUs?

  • Like 1
Link to comment
Share on other sites

Don't know about 32 threads but my potato could use another thread used as it helped with any other game around. Weak Celerons need any push they can squeeze.

Imagine the changes you'll see!

"I really perceive that vanity about which most men merely prate — the vanity of the human or temporal life. I live continually in a reverie of the future. I have no faith in human perfectibility. I think that human exertion will have no appreciable effect upon humanity. Man is now only more active — not more happy — nor more wise, than he was 6000 years ago. The result will never vary — and to suppose that it will, is to suppose that the foregone man has lived in vain — that the foregone time is but the rudiment of the future — that the myriads who have perished have not been upon equal footing with ourselves — nor are we with our posterity. I cannot agree to lose sight of man the individual, in man the mass."...

- 2 July 1844 letter to James Russell Lowell from Edgar Allan Poe.

badge?user=andarson

Link to comment
Share on other sites

More gamers than ever before are about to have 8 cores and 16 threads now that AMD's Ryzen 7 is out. Some of you may even lay down the cash for Threadripper with up to 32 threads, or the Intel Core i9 equivalents. Is it time for more threading, and will any of you be getting these CPUs?

 

No and no. At least for games, it's mostly unnecessary, as they still use 4 cores, and that won’t change much until next generation of consoles comes along. It’s still hard to say when that happens, as Sony execs say there’s PS5 in the works, while MS execs state that “console generations are over” and it’s time to switch to incremental updates, as with mobile hardware. I’d be switching to some better hardware mostly due to better Mental Ray performance, and video encoding. Since that’s a hobby, I can wait long after prices drop. If gamers are really moving to 8-16 cores, we'll see that in Steam hardawre poll sooner or later, but I don't think so.

 

Edit: link to steam hardware CPU trends: http://store.steampowered.com/hwsurvey/cpus/

 

It looks like only recently users with quad core CPUs made more than 50% of the total.

Edited by Judith
  • Like 1
Link to comment
Share on other sites

Hm, I'm not so sure games won't start using more threads soon. The way that modern parallelization is usally done is task-based, where a set of repeating code is divided into tasks which can run in parallel. These tasks are then executed on worker threads, and it doesn't really matter to the app how many worker threads you have. On a console you may have two workers, and on a PC you can easily spawn more if there are more cores available. So consoles aren't really the limiting factor here, it's more adopting the technique.

 

@jaxa: Unfortunately, adopting the Doom 3 BFG threading model is not that simple and would be quite a significant effort. There have been a lot of changes under the hood to accomodate it. I only did a fairly simple cut between frontend and backend, and even that took me quite a while. Not to mention that it's entirely unclear if it really is stable. After all, we have at least one report with issues, so I'd really appreciate more people trying it out :)

  • Like 1
Link to comment
Share on other sites

and that won’t change much until next generation of consoles comes along. It’s still hard to say when that happens, as Sony execs say there’s PS5 in the works, while MS execs state that “console generations are over”

 

PS4 and Xbox One and their refreshed versions, PS4 Pro and Xbox One X, already have eight cores, not four. Up to seven of which are usable by games (6 at launch). Only one thread per core though. They are also more like PCs than ever before because they use AMD x86 chips rather than PowerPC (Xbox 360) or Cell (PS3).

 

http://www.tomshardware.com/news/ps4-cpu-seventh-core-unlocked,30662.html

http://gamingbolt.com/dying-light-the-following-using-7th-cpu-core-of-ps4-and-xbox-one-dev-talks-about-cloud-gaming

 

Vulkan is better at spreading work across more CPU cores AFAIK.

 

As for the Steam stats, 6-8 core will tick up (more than they already have) eventually. Ryzen sales have apparently helped AMD perform well in Q2 although the GPU shortage is also a factor. Some (loaded) gamers may be holding out for Intel's Core i9 CPUs or AMD's Threadripper.

 

The first Ryzen 8-cores became available on March 2nd. If the Steam Windows playerbase grew a bit, then the increase of 8-core CPUs from 0.24% in Feb to 0.47% today is basically a doubling, and it should continue. Ryzen 7 prices have also declined a bit from launch prices. Even if 8-core is a minimum of about $300, that leaves the Ryzen 5 1600X and Ryzen 5 1600 with 6 cores from $200-$230.

 

Obviously, it should be assumed that most PC gamers are using 2-4 cores. But the genie is out of the bottle and we will see more PC users switching to 6-8 cores, if not 16-18. Intel's Coffee Lake will include a mainstream-priced 6-core chip. The only place I don't see change is in laptops. Although you can stuff a desktop chip and a cooling system in a laptop, laptop CPU/APUs still top out at quad-core and there are no plans that I see to change that with Raven Ridge/Ryzen Mobile or the successor Gray Hawk, which may or may not be 7nm.

Link to comment
Share on other sites

But there's no reason to switch to 8 cores or more if games aren’t using them. Also remember that changing CPUs is not like buying a new GPU. You need to buy a good motherboard, fast compatible RAM, stable PSU, good cooling, etc. That will cost you a lot, so people make that purchase once a 6 years or even more, to have a solid foundation for GPUs they buy every 2-3 years or so.

  • Like 1
Link to comment
Share on other sites

PS4 and Xbox One games can use at least 6 threads. Developers would be foolish not to since the Jaguar cores are comparatively slow. Game development is moving towards more parallelism. Newer games are utilizing more than 4 cores:

 

https://www.reddit.com/r/pcmasterrace/comments/5ui1bd/why_getting_more_than_4_cores_in_a_gaming_cpu_is/

https://www.reddit.com/r/pcmasterrace/comments/5m23tr/games_dont_use_more_than_4cores/

(now you can tell I'm being lazy)

 

If you have a tight budget, spending an extra $100 on a better graphics card is the right move, but we are chipping through the quad-core ceiling and it's clear that the 2017-18 CPU releases by AMD and Intel are going to put the hardware in the hands of more people. Game developers will still ensure most dual and quad-core users can play games, but games can scale to use the available hardware. There is a chicken and egg problem here, and "cheap" hex/octo/deca (compare the i7-6950X to the i9-7900X) cores being sold even if users don't necessarily need them today is a possible solution.

 

And there is another reason for someone to have more than 4 cores... if that person is a streamer.

Link to comment
Share on other sites

Yup, but I think this is still more like a tech-enthusiast perspective. It’s 2017, and, according to Steam poll, the biggest group of gamers still use video cards with 1-2 gigs of VRAM. My guess is that they won’t jump on a new CPU platform so readily and easily.

Link to comment
Share on other sites

So, some bad news. This weekend, I experimented with further parallelizing some parts of the frontend renderer (specifically, finding lights and adding interactions), which were especially prominent in the profiler. However, it made no difference at all, at least not in places where extra performance would have been needed. It appears that in cases where the frontend takes long, then the backend also takes long, so cutting down calculation times on the frontend didn't help anything, because the backend then becomes the bottleneck.

 

So this means further threading does not currently help, as the primary bottleneck is now actually the rendering. So to get more performance, I think there is now little choice but to port the vertexcache changes from Doom3 BFG, which would be a major undertaking...

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...