Small hack could improve Cyberpunk 2077 perf with certain AMD processors (updated w/ benchmarks)

Published by

teaser

Redditor BramblexD discovered that certain AMD processors perform worse than should be theoretically possible. AND from the looks of things, SMT mode for AMD processors is disabled by default in the game.



There is a quick fix, a hack even. Using a hex editor, searching the game executable for '75 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08 'and replacing it for '74 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08 ', would ope up multithreading on AMD processors. The edit modifies the game's scheduler to make it utilize more CPU cores, says / u / CookiePLMonster. Some users claim to achieve about 30% better performance. However, that doesn't go for all user as some have even worse performance. With the code below you can re-enable smt on your Ryzen processor, using a hex editor. Since there are large differences between systems with different hardware combinations.

Look for:
75 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08

change to:
74 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08

From the looks of it, CDPR has been using code lines from the Bulldozer era, and as it seems, AMD processors with a lower CPU core count, are affected by this the most. If this is the case, then we're sure that the software house will include it in a future patch soon as well. It's unclear how the game, which has been delayed so many times, has not been optimized for AMD Ryzen processors.

Here is the procedure:

1. Download HxD Hex Editor
2. Find the executable Cyberpunk2077.exe
3. Make a backup copy of Cyberpunk2077.exe just in case
4. Drag Cyberpunk2077.exe to the HxD, a lot of hexadecimal numbers should appear (01 FF 0D, etc. )
5. Press CTRL + F, change the column to hexadecimal values
6. Put “75 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08” in the search line without quotes, those values should be highlighted
7. Copy "EB 30 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08" without quotation marks
8. Now in HxD, this copied value right click on the value and paste the new hexadecimal value
9. In the toolbar of above, click on save and voila.

If it does not work out for you, just swap back the old executable file.

Update

The colleagues from German Computerbase (read) put several Ryzen, 5000 series processors, to the test with the hack. They are not advising applying it. In some use cases it seems faster, but the percentile 0.2 FPS drops significantly.

  • Ryzen 9 5950X, Ryzen 9 5900X and Ryzen 7 5800X run between 5 and 10 percent slower after the hack.
  • Ryzen 5 5600X behaves differently again. In fact, the 6-core processor increases the average frame rate by 9 percent, but the percentile FPS break away completely.

Small hack could improve Cyberpunk 2077 perf with certain AMD processors (updated w/ benchmarks)

Share this content
Twitter Facebook Reddit WhatsApp Email Print