CyberEngineTweaks icon indicating copy to clipboard operation
CyberEngineTweaks copied to clipboard

Support for Config file fixes

Open jonfairbanks opened this issue 5 years ago • 31 comments

It was recently discovered that the Config file is sub-optimal. Could the fixes identified be integrated into this tool?

Info: https://www.reddit.com/r/cyberpunkgame/comments/kccabx/hey_cd_projekt_red_i_think_you_shipped_the_wrong/

Thanks!

jonfairbanks avatar Dec 13 '20 20:12 jonfairbanks

Post is deleted, https://www.removeddit.com/r/cyberpunkgame/comments/kccabx/hey_cd_projekt_red_i_think_you_shipped_the_wrong/

for copy

Jeremy-Laier avatar Dec 13 '20 21:12 Jeremy-Laier

Is this the PoolCPU and PoolGPU settings ? I gave it a shot and saw no improvements on my machine if someone who did use this trick and got a performance boost reads this I would appreciate your help with testing a patch for this. Cheers!

maximegmd avatar Dec 13 '20 22:12 maximegmd

As a data point, I haven't seen any difference whatsoever by changing that file from the reddit post.

(i7 6700k, 16gb ram, gtx1070)

WhoSayIn avatar Dec 13 '20 22:12 WhoSayIn

Noticed a slight improvement (5-7 fps) and what seems to be a slight increase in general texture quality.

HtheChemist avatar Dec 13 '20 23:12 HtheChemist

As a further data point, I also saw no improvements by changing these config lines. Either to those recommended by the OP (16GB RAM, 8GB VRAM for my GPU) or both to 0 (which the text file suggests is auto-calc).

Ryzen 3700x, 32GB RAM, 5700XT.

FWIW: I monitored VRAM & RAM utilization and there was no difference in usage between any of these settings (default, recommended and zeroed). But pool allocation may not affect the overall usage, I am out of my depth here.

richardtatum avatar Dec 14 '20 01:12 richardtatum

I observed a performance increase when I updated config file.

Ryzen 3900x/RTX 3080/32GB RAM

Might be worth adding this in. Looks like worst case it does nothing, while best case it gives you a performance increase.

alekmieczkowski avatar Dec 14 '20 01:12 alekmieczkowski

Hi, not familiar with Windows development. Unix guy here.

Do I understand correctly, but does this mean there is no way of letting the exe know it can allocate as much resources as it wants, but we just need to raise the predefined bar?

grepwood avatar Dec 14 '20 03:12 grepwood

As far as I can tell this does not work. You can make any edits to that file or even delete it and the game boots just fine and there are no changes. In fact, it makes no sense for it to work because OP of that Reddit thread didn't even uncomment the lines in the file for it to work. (Which by the way, it still doesn't.)

I also tried checking Process Explorer to see if the file is even used at all by the application and it seems it is not.

PSubutai avatar Dec 14 '20 03:12 PSubutai

I went from 60fps to 90fps by modifying that config file. For reference, I have an RTX 3080, AMD 3800XT, and 64GB 3600MHz RAM. I had all settings set to their maximum level and DLSS set to Ultra Performance.

badman27 avatar Dec 14 '20 03:12 badman27

For reference, no difference here after making the changes. Perhaps you could make a small installer that allows users to select the features they need?

null-dev avatar Dec 14 '20 04:12 null-dev

Hi, not familiar with Windows development. Unix guy here.

Do I understand correctly, but does this mean there is no way of letting the exe know it can allocate as much resources as it wants, but we just need to raise the predefined bar?

My best guess is that they set up a pool for custom memory management rather than relying on default OS memory handling. There are some potential advantages to this around efficiency of loading and maintaining memory, uploading data to the GPU, etc; especially if you can avoid having too many page faults in your access, which is perhaps more likely if you're allowing the OS to assign memory chunks -- I'm not familiar enough with OS memory management to know how likely, only that in theory such things might happen.

If the value is for pool size, then I would further assume that they ARE using default OS memory handling for everything else, and if your OS memory table is particularly fragmented or just not being handled well for whatever reason, I could understand some people seeing sometimes dramatic framerate improvements for when they're especially CPU-bound by things like page faults.

AberrantWolf avatar Dec 14 '20 04:12 AberrantWolf

I did the change and I have a reproduceable crash right after a save. Without the change no crash in that save. I have 32gb ram so i did 16gb and i have a 1080 ti so i did 11gb. Not 100% sure about the values I used, but looks right.

alpharesearch avatar Dec 14 '20 04:12 alpharesearch

I did the change and I have a reproduceable crash right after a save. Without the change no crash in that save. I have 32gb ram so i did 16gb and i have a 1080 ti so i did 11gb. Not 100% sure about the values I used, but looks right.

Which 1080ti? Not all models have 11gb, so that may be your issue.

alekmieczkowski avatar Dec 14 '20 04:12 alekmieczkowski

I did the change and I have a reproduceable crash right after a save. Without the change no crash in that save. I have 32gb ram so i did 16gb and i have a 1080 ti so i did 11gb. Not 100% sure about the values I used, but looks right.

Which 1080ti? Not all models have 11gb, so that may be your issue.

Evga 1080 ti, and it states 11GB on the box.

alpharesearch avatar Dec 14 '20 04:12 alpharesearch

Pretty sure there are different EVGA flavors of the same card. Mine is SC2.

SEAPUNK avatar Dec 14 '20 04:12 SEAPUNK

I bought the card when it came out, the box doesn't have any other designator. Is there a command I can run or any place where it shows?

Edit: found my pc parts picker page I created when i built the pc, this is the card: https://pcpartpicker.com/product/gwJkcf/evga-geforce-gtx-1080-ti-11gb-sc-black-edition-video-card-11g-p4-6393-kr

alpharesearch avatar Dec 14 '20 04:12 alpharesearch

Its curious that you're getting crashes. What ram type & speed do you have? What CPU? Do you have game on HDD or SSD?

alekmieczkowski avatar Dec 14 '20 05:12 alekmieczkowski

Might be worth trying with 10GB in case you haven't yet. If you have all the VRAM allocated and something needs to allocate something else for some reason, I could see that causing a GPU crash.

AberrantWolf avatar Dec 14 '20 05:12 AberrantWolf

This is bonkers. We're doing a memory manager's job here. I'm surprised CP2077 doesn't come with DOS4GW included.

grepwood avatar Dec 14 '20 06:12 grepwood

I can confirm i saw an increase in performance allowing me to jump from high to ultra present with 1-2fps performance gain. Cpu consumption jumped from around 30-36 to 36-64. 9900k, 2080ti

tirrorex avatar Dec 14 '20 06:12 tirrorex