However it makes all interior lighting a flickering mess. I have to manually switch it back to 2048 then to 4096 to fix this. Any ideas? Also when I switch back to 4096 it isn't anywhere near as crisp as it is originally
Edit: Ok it seems that the game loads in with 8192 even thought the cfg is set to 4096, so I have to manually set this each time. But even then I'm still getting flickering in interiors.
My only gripe with this game was lack of decent AO and the small circle of influence the character had on ground shadows.
Now I’ve got a mod for both. However. And this really crashed the excitement. With e_GsmRange=9 enabled it instantly destroys the game’s shadows.
To confirm, I deleted the mod and ran the game vanilla with Ultra Shadows set in the game’s Advanced Settings. If I open the console and type GsmRange=9 and hit enter, I can see my shadow resolution reduced to a blurry mess in realtime.
I’ve been experimenting with why this might happen and have come to no conclusions other than a less than satisfying compromise, which is launching the game, enabling the command in the console and then manually setting the shadow resolution in the console as well.
Oddly enough, I have to set the shadow resolution to twice the size desired. Example: if I want to use e_GsmRange=9, then after hitting enter, I have to type e_ShadowsMaxTexRes=8192 just to get 4K shadows back. Which to me means that enabling this mod seems to cut shadow resolution in half.
Very strange. I’ve shelved the game until I have time to get it sorted out or hopefully someone with more knowledge can provide a solution.
[EDIT] For what it’s worth I’m running an RTX 4090, i7 13700K, 32GB RAM and all my drives are SSDs.
I also allocated 16GB of system ram to Kingdom Come, set the VRAM to 24GB and increased the shadow pool size and memory allocations.
The game runs great maxed out at 4K (solid 60fps on my 65” OLED tv) but the low resolution shadows when using this mod is a real bummer.
Thanks in advance for anyone who takes the time to respond!
Oh, the reason for the reduced shadow resolution when increasing gsmRange is actually very simple.
The default shadow map resolution is 2048, and the default shadow cascade size (gsmRange) is 3 meters. Now when u increase gsmRange to 6m, u are effectively increasing the size of each pixel because now u are using the same 2048 resolution on a much bigger surface. Its like doubling ur tv size but keeping the same resolution. Thats why my mod also increases the shadow resolution (depending on which version u choose).
So for example default shadow map res is 2048*2048, and it covers a range of 3*3 meters, so at a gsmRange of 6 (6*6 meters) u would need 4096*4096 shadow map res for it to look the same, resolution wise.
Sadly without increasing shadow resolution (and decreasing fps) u cannot really enjoy increased gsmRange without it being very low res.
"Oddly enough, I have to set the shadow resolution to twice the size desired. Example: if I want to use e_GsmRange=9, then after hitting enter, I have to type e_ShadowsMaxTexRes=8192 just to get 4K shadows back. Which to me means that enabling this mod seems to cut shadow resolution in half. "
Also very simple actually.
When u increase gsmRange from 3 to 6, u are not doubling the surface size but actually quadrupling.
Which is why u need to also quadruple the shadow map resolution, so instead of 2048 u need 4096 since: 2048*2048 = 4.2 million pixels 4096*4096 = 16.8 million pixels
So for gsmrange 9 u would need shadow map res of 6144.
Its been a long while since i last touched this game so i hope i didnt make any mistake anywhere.
With ur pc specs i recommend u to use the 8k version of this mod. It has a shadow map res of 8192. I also recommend u to perphaps look into overclocking ur gpu if ur fps drops too much.
In my opinion, for the most of people it's not so important. I tested this mod in 2k and then in 4k at the same 6m range and I can say that differences are really negligible at the distance. Yes, 2k shadows from the grass are less detailed and it's noticeable if you look close enough, but increasing it up to 4k is definitely not worth that performance hit. You can basically imagine a little bit blurry shadows just like a some kind of soft shadows or whatever :)
Thanks for the detailed explanations! Sorry it took a while to respond. I don’t have any notifications set up and I hadn’t heard back in a while.
Shortly after I posted I downloaded a pdf with various commands and began going through them to balance out the mod settings and get everything looking good and working great together.
I’ll copy/paste and post my parameters when I get back to my PC for anyone who’s interested.
No problem, u can just create one. Create a text document and just rename it to autoexec.cfg. The extension should be .cfg and not .txt. Hope that helps.
Ok thanks I seem to have got it working through Vortex now, but if I change any graphics settings in game it disables the mod and I have to reload the game to get it to work again. Also, performance absolutely tanks in some areas to below 30 fps at times, I'm on a 4080S. Is this normal?
Suprisingly one of very few graphics mod that really works. After almost trying every shadow-tweak mod out there to overcome the annoying shadow flickering issue in KCD, my search has come to an end. I'm using the authors 4K settings, and my "new" KCD shadows have never been so good; even the shadows in mid range disctance and on buildings have stopped to flicker. Shadows are now pretty crisp :)
BTW: I'm using a GPU with 16GB VRAM. My FPS with this mod are still the same as before, no noticable loss regarding performance.
THANK YOU SO MUCH !!!! You've done an awesome job, and it really works.
I had lighting, particles, shadow maps and shadows up to ultra and still looked like crap. The 2k file looks 4x better than ultra and I'm getting better performance.
For anyone confused, just drop the 2 .cfg files in the root of your KCD directory.
Fantastic idea for a mod, but I can't get it to work. This is what my game directory looks like with autoexec and EnhancedShadowCascades extracted from your zip, but Henry is still pushing a sphere of grass shadows 3m ahead of him. Am I doing something wrong? Help would be much appreciated.
Which version are u using? The 2k version still renders 3m ahead for the first cascade, this is intentional, because the shadow resolution simply isnt enough for anything more than 3m.
31 comments
However it makes all interior lighting a flickering mess. I have to manually switch it back to 2048 then to 4096 to fix this. Any ideas?
Also when I switch back to 4096 it isn't anywhere near as crisp as it is originally
Edit: Ok it seems that the game loads in with 8192 even thought the cfg is set to 4096, so I have to manually set this each time.
But even then I'm still getting flickering in interiors.
Does the Shadow Pool size need to be 16384? What about 8192? Also what does e_VegetationUseTerrainColorDistance inf achieve?
Now I’ve got a mod for both. However. And this really crashed the excitement. With e_GsmRange=9 enabled it instantly destroys the game’s shadows.
To confirm, I deleted the mod and ran the game vanilla with Ultra Shadows set in the game’s Advanced Settings. If I open the console and type GsmRange=9 and hit enter, I can see my shadow resolution reduced to a blurry mess in realtime.
I’ve been experimenting with why this might happen and have come to no conclusions other than a less than satisfying compromise, which is launching the game, enabling the command in the console and then manually setting the shadow resolution in the console as well.
Oddly enough, I have to set the shadow resolution to twice the size desired. Example: if I want to use e_GsmRange=9, then after hitting enter, I have to type e_ShadowsMaxTexRes=8192 just to get 4K shadows back. Which to me means that enabling this mod seems to cut shadow resolution in half.
Very strange. I’ve shelved the game until I have time to get it sorted out or hopefully someone with more knowledge can provide a solution.
[EDIT] For what it’s worth I’m running an RTX 4090, i7 13700K, 32GB RAM and all my drives are SSDs.
I also allocated 16GB of system ram to Kingdom Come, set the VRAM to 24GB and increased the shadow pool size and memory allocations.
The game runs great maxed out at 4K (solid 60fps on my 65” OLED tv) but the low resolution shadows when using this mod is a real bummer.
Thanks in advance for anyone who takes the time to respond!
The default shadow map resolution is 2048, and the default shadow cascade size (gsmRange) is 3 meters.
Now when u increase gsmRange to 6m, u are effectively increasing the size of each pixel because now u are using the same 2048 resolution on a much bigger surface. Its like doubling ur tv size but keeping the same resolution. Thats why my mod also increases the shadow resolution (depending on which version u choose).
So for example default shadow map res is 2048*2048, and it covers a range of 3*3 meters, so at a gsmRange of 6 (6*6 meters) u would need 4096*4096 shadow map res for it to look the same, resolution wise.
Sadly without increasing shadow resolution (and decreasing fps) u cannot really enjoy increased gsmRange without it being very low res.
Also very simple actually.
When u increase gsmRange from 3 to 6, u are not doubling the surface size but actually quadrupling.
gsmRange = 3, 3*3 = 9m squared surface
gsmRange = 6, 6*6 = 36m squared surface
Which is why u need to also quadruple the shadow map resolution, so instead of 2048 u need 4096 since:
2048*2048 = 4.2 million pixels
4096*4096 = 16.8 million pixels
So for gsmrange 9 u would need shadow map res of 6144.
Its been a long while since i last touched this game so i hope i didnt make any mistake anywhere.
I also recommend u to perphaps look into overclocking ur gpu if ur fps drops too much.
Shortly after I posted I downloaded a pdf with various commands and began going through them to balance out the mod settings and get everything looking good and working great together.
I’ll copy/paste and post my parameters when I get back to my PC for anyone who’s interested.
Create a text document and just rename it to autoexec.cfg.
The extension should be .cfg and not .txt.
Hope that helps.
Also, performance absolutely tanks in some areas to below 30 fps at times, I'm on a 4080S. Is this normal?
BTW: I'm using a GPU with 16GB VRAM. My FPS with this mod are still the same as before, no noticable loss regarding performance.
THANK YOU SO MUCH !!!! You've done an awesome job, and it really works.
Tho im glad u like it : )
For anyone confused, just drop the 2 .cfg files in the root of your KCD directory.
This is what my game directory looks like with autoexec and EnhancedShadowCascades extracted from your zip, but Henry is still pushing a sphere of grass shadows 3m ahead of him.
Am I doing something wrong? Help would be much appreciated.
Take a look at this bug report for more info:
Enchanced Shadows and Shadow Cascades at Kingdom Come: Deliverance Nexus - Mods and community (nexusmods.com).