Monday, December 14th 2020

Cyberpunk 2077 Does Not Leverage SMT on AMD Ryzen, Lower Core-Count Variants take a Bigger Hit, Proof Included

Cyberpunk 2077 does not leverage simultaneous multi-threading (SMT) on AMD Ryzen processors, according to multiple technical reviews of the game that tested it with various processors. The game does leverage the analogous HyperThreading feature on rival Intel Core processors. While this doesn't adversely affect performance of higher core-count Ryzen chips, such as the 16-core Ryzen 9 5950X or to a lesser extent the 12-core 5900X, lower core-count variants such as the 6-core 5600X take a definite performance hit, with PCGH reporting that a Ryzen 5 5600X is now matched by a Core i5-10400F, as the game is able to take advantage of HyperThreading and deal with 12 logical processors on the Intel chip, while ignoring SMT on the AMD one.

CD Projekt RED may have bigger problems on its hands than performance optimization for a PC processor, such as the game being riddled with glaring performance issues on consoles; but in the meantime, the PC enthusiast community swung to action with a fix. Authored by chaosxk on Reddit, it involves manually editing the executable binaries of the game using a Hex Editor, which tricks the game into using logical processors as cores. This fix has been found to improve frame-rates on AMD Ryzen machines. Before attempting the hex edit, make sure you back up your original executables. The screenshot below provides a before & after-patch view of Cyberpunk 2077 loading a Ryzen 9 5950X. You can learn more about this fix, and a step-by-step guide here.

Update 08:28 UTC: We have some technical details on what's happening.

A Reddit post by CookiePLMonster sheds light on what is possibly happening with the game. According to them, Cyberpunk 2077 reuses AMD GPUOpen pseudo-code to optimize its scheduler for the processor. It was originally designed to let an application use more threads when an AMD "Bulldozer" processor is used; but has the opposite effect when a non-Bulldozer AMD processor is detected. The game looks for "AuthenticAMD" processor brand, and "family = 0x15" (AMD K15 or Bulldozer/derivative), and only then engages "logical processors" (as identified by Windows OS scheduler as part of its Bulldozer-optimization). When any other, including a newer AMD processor is detected, the code makes the game scheduler only send traffic to the physical cores, and not to their logical processors.

Our own W1zzard dug into the binaries to verify these claims, find a commented decompilation below. The game indeed uses this archaic GPUOpen code from 2017 to identify AMD processors, and this is responsible for its sub-optimal performance with AMD Ryzen processors. This clearly looks like a bug or oversight, not like it's intentional.
Sources: chaosxk (Reddit), BramblexD (Reddit), PCGH, VideoCardz, CookiePLMonster (Reddit)
Add your own comment

84 Comments on Cyberpunk 2077 Does Not Leverage SMT on AMD Ryzen, Lower Core-Count Variants take a Bigger Hit, Proof Included

#26
robot zombie
repman244The sad part is that the game cannot be fixed, bugs yes but the game itself is unfixable IMO...but some people still think it's a matter of a DLC and all is ok.
In what way? I'm not in love with ALL of the mechanics myself, but generally I tend to think the concepts are good and the ways of executing they went for are fine. Could point to a lot of little flaws, but little that recognized good games don't also tend to have. The AI is probably the biggest 'persistent' shortcoming. Simply as a game, I think it still gets all the way there. On that level I've really enjoyed it and will definitely replay it many times. What it actually has to offer is about what I expected. If they fix up the bugs I might even say it's a favorite.

But I can also see where some might not dig it, so I get curious.
Posted on Reply
#27
Chomiq
repman244The sad part is that the game cannot be fixed, bugs yes but the game itself is unfixable IMO...but some people still think it's a matter of a DLC and all is ok.
Put more than 20h into it over the weekend, had 1 CTD. No game breaking bugs. Sure there are some small visual glitches (characters in T-pose, Z glitching on textures, incorrect placement of character model, etc) but nothing that would stop me from completing any quest.
Posted on Reply
#28
Naijel74
Wait, is this happening on the consoles too? Don't the new and previous gen consoles all have multi-core AMD CPUs?
Posted on Reply
#29
ZoneDymo
ChomiqPut more than 20h into it over the weekend, had 1 CTD. No game breaking bugs. Sure there are some small visual glitches (characters in T-pose, Z glitching on textures, incorrect placement of character model, etc) but nothing that would stop me from completing any quest.
Well thats the thing, the game is fine as a ermm linear? game, the open world aspect is a path they never should have chosen to walk.
The problem is the AI is absolutely far below par, its as if we went back 10 - 15 years or so, and never before in a game has the AI been completely reworked.
Cops just spawn behind you and do not drive their cop cars, the world you are not looking at despawns instandly, AI pedestrians react...well again as if we are playing a game from a decade ago...and that will probably never get fixed.

More weapons, more cars, more cyberware, the ability to mod cars, the ability to ride the damn train...maybe...MAYBE that will be added but the core gameplay will remain the same and that is why the game is imo pretty much doomed.
Posted on Reply
#30
ViperXTR
Keemzayhow much does it benefit it by? What's the lowest frames that you are getting? I remember going below 35 fps back then, pre patch and pre 1.04, GPU usage is also almost always 99% now and CPU usage increased, in terms of max FPS its not much as my GPU is it at its limit already
So far roaming around 40 fps i think
Posted on Reply
#31
ShurikN
So what you're telling me that in almost 4 years that Ryzen has been out no one in CDPR bothered to test the game on one such system... That's 4 years of game development and not once did anyone check...
So what exactly were they doing in those 4 years, aside from making a penis customizer?!
Posted on Reply
#32
Chomiq
ZoneDymoWell thats the thing, the game is fine as a ermm linear? game, the open world aspect is a path they never should have chosen to walk.
The problem is the AI is absolutely far below par, its as if we went back 10 - 15 years or so, and never before in a game has the AI been completely reworked.
Cops just spawn behind you and do not drive their cop cars, the world you are not looking at despawns instandly, AI pedestrians react...well again as if we are playing a game from a decade ago...and that will probably never get fixed.
Have you played any Witcher game? CDPR never was really focused on NPC interactions outside of the quests.
Posted on Reply
#33
W1zzard
ShurikNSo what you're telling me that in almost 4 years that Ryzen has been out no one in CDPR bothered to test the game on one such system...
Either that, or nobody noticed it because Ryzens have higher core counts
Posted on Reply
#34
Tsukiyomi91
I highly doubt that them (CDPR) using a dated but archaic checker is "a bug or an oversight". Sounds intentional than anything IMO.
Posted on Reply
#35
Dux
Yup. Can confirm this. I have 5900X. Usage spread evenly across 12 physical cores. Logical at 0% usage.
Posted on Reply
#36
PerfectWave
when you write code with foot instead of hands Kappa
Posted on Reply
#37
Calmmo
0 gains on 3900x/5900x, but that was to be expected i suppose.
Posted on Reply
#38
authorized
ZoneDymoThe problem is the AI is absolutely far below par, its as if we went back 10 - 15 years or so, and never before in a game has the AI been completely reworked.
Well, except for that typo in config file in Aliens Colonial Marines that neutered the AI.
Tsukiyomi91I highly doubt that them (CDPR) using a dated but archaic checker is "a bug or an oversight". Sounds intentional than anything IMO.
That's just too paranoid... it would be both pointless and insane to include such a bug on purpose, given that it was guaranteed to be noticed.
Posted on Reply
#39
_Flare
complex games take long to produce, CDPR tried to use AMD code to optimize, but seemed to had fokus on consoles wich were never bulldozer-based and on the PC-side took intel and eventually higher corecount ryzens and didn´t realize this hurdle. they tried but failed for this part
we know the hex manipulation and some other tweaks now, like turning on the "slow hdd mode" when having texture streaming issues etc.
i bought the game just a few moments ago and will fiddle around with it, hopefully enjoy it overall.
Posted on Reply
#40
Xajel
R0H1TBut Bulldozer was promoting usage of more cores, even when everyone else was hyping the next Intel *well on the roadmap!
The problem with bulldozer is that while it promoted the usage of more cores, if the application is using more cores hoping for more FP cores and performance it will actually hit a wall, as every 2 bulldozer cores shared a single FP core. Or to take it on the other hand, a single core contains addition integer hardware core.

Applications were not aware of this, when they detect a new core, they expect it to be a full core which have both integer and FP logics, but when the application actually split it workloads into threads, while 2 threads will get full integer cores, but these 2 threads will be forced to share a single FP core, if the application is FP heavy, then being multi core will actually takes a hit in performance as things will get congested in the single FP core.
Posted on Reply
#42
repman244
robot zombieIn what way? I'm not in love with ALL of the mechanics myself, but generally I tend to think the concepts are good and the ways of executing they went for are fine. Could point to a lot of little flaws, but little that recognized good games don't also tend to have. The AI is probably the biggest 'persistent' shortcoming. Simply as a game, I think it still gets all the way there. On that level I've really enjoyed it and will definitely replay it many times. What it actually has to offer is about what I expected. If they fix up the bugs I might even say it's a favorite.

But I can also see where some might not dig it, so I get curious.
In a way that you cannot interact with the world around you, if you leave the quests aside there is nothing to do.
For example if you go to a bar to get a drink, you just buy it like you would be your gun...you can't sit down and drink it.
You can not interact with people, even the traffic lights switch to green for you. The AI does not exist...the whole game seems to be on rails.
And the police? GTA 1 from the 90s had better police.
I really like how the city is made, the vibe, the sounds and I still kind of hope they can change all this for this game to be not just good but great. But I somehow doubt that such vast and deep changes will be made.

This game would be fine 5 years ago, but in the meantime the bar was raised much higher (see RDR 2 - IMO it's the benchmark when it comes to OW, the attention to detail and the options you have there is just mind blowing).
Posted on Reply
#43
ZoneDymo
repman244In a way that you cannot interact with the world around you, if you leave the quests aside there is nothing to do.
For example if you go to a bar to get a drink, you just buy it like you would be your gun...you can't sit down and drink it.
You can not interact with people, even the traffic lights switch to green for you. The AI does not exist...the whole game seems to be on rails.
And the police? GTA 1 from the 90s had better police.
I really like how the city is made, the vibe, the sounds and I still kind of hope they can change all this for this game to be not just good but great. But I somehow doubt that such vast and deep changes will be made.

This game would be fine 5 years ago, but in the meantime the bar was raised much higher (see RDR 2 - IMO it's the benchmark when it comes to OW, the attention to detail and the options you have there is just mind blowing).
just as an FYI, GTA5 came out 7 years ago sooo 5 years ago this would still be unacceptable really.
The team that made the city deserve credit, the team responsible for what is in it....not so much
Posted on Reply
#44
Vya Domus
This still makes little sense to me, most threading frameworks used everywhere typically only expose logical threads with no real way of targeting cores and the reason for that is very simple, trying to take SMT into the way equation is a terrible idea with mostly negative results. The OS will typically prioritize the distribution of threads across cores first anyway, which is what this more or less achieves. So they had the time to add DXR, DLSS and all of that stuff but not properly QA the game on AMD hardware despite going out of their way to use really outdated code from AMD ? Why does that not surprise me at all.
ShurikNThat's 4 years of game development
You still believe that ? :laugh:
Posted on Reply
#45
kruk
FluffmeisterHmm, best not rely on GPUOpen then.
How about not blindly copy&pasting code and doing proper testing before publishing the game? This bug should be visible from miles away, since the most popular Ryzen CPUs support SMT. No excuses here ...

P.S: also, the numerous desperate attempts at downplaying this open source project just show that it has become a great alternative.
Posted on Reply
#46
ShurikN
Vya DomusYou still believe that ? :laugh:
I get what you mean, makes me wonder when the game actually started development, because 8 years in the making should not have this many bugs or issues like these.
Posted on Reply
#47
FreedomEclipse
~Technological Technocrat~
Rumour has it that the game wasnt ready for prime time but the shareholders wouldnt allow them to delay the game again...

Either way, all the other stories seems to point to bad management
Posted on Reply
#48
Vayra86
CrackongSo,

it does not support SMT on Ryzen CPU.
it does not support DXR on RX6000 GPU
Indeed.

It raises questions, mostly towards AMD for totally forgetting to show some TLC to game developers - especially those that are about to release the biggest blockbuster in recent history.

Not the first time, still an ongoing trend. Still a major missed chance and still something Nvidia uses to its advantage. Complaining about green here has no place, and CDPR isn't responsible for Ryzen either, just for their game. We see this every. Single. Goddamn. Time.

AMD wants the mindshare they better start working for it. DXR is a similar major miss. I mean wtf. You have RT capable hardware. And if Green blocks your path, expose it and put CDPR and Nvidia to shame. I mean... you're either in business or in kindergarten.

Cyberpunk was 2020's highest exposure tech demo.
ShurikNSo what you're telling me that in almost 4 years that Ryzen has been out no one in CDPR bothered to test the game on one such system... That's 4 years of game development and not once did anyone check...
So what exactly were they doing in those 4 years, aside from making a penis customizer?!
If you have, which is highly plausible, current hardware that is all Intel, the urge to do so is very low, not in the least because the market penetration % for Ryzen is ALSO extremely low. You're literally testing for a niche at that point, especially during development when Ryzen was far from what it is today.

But to you I also ask... have you considered the role of AMD as well?
Vya DomusYou still believe that ? :laugh:
Game development can be as much as some random guy sitting there drawing some concept art. I believe it as much as I believe Nvidia has been 10 years at work on RTX :D
Posted on Reply
#49
Kapone33
So now that TPU has the data it does confirm my suspicions that CP2077 runs much smoother on my 2920x vs my 5600X system and the 2920X has an older GPU.
Posted on Reply
#50
john_
So, we have to believe that professional programmers that work at a multi billion company ( 29 billions market value ) and who can bring a world to life, live under a rock and don't know that AMD is producing a new line of CPUs that does not use the Bulldozer architecture?

Sure. We believe it. Why not?
Posted on Reply
Add your own comment
Apr 1st, 2025 13:29 EDT change timezone

New Forum Posts

Popular Reviews

Controversial News Posts