Kingdom Come: Deliverance

Kingdom Come: Deliverance

View Stats:
comandoo Dec 19, 2021 @ 2:55am
Guide: how to render upscale/downscale
First of all, this is a rather hacky solution! I still couldn't find how to keep the setting after relaunching the game, so any feedback is welcome!

How to upscale/downscale
Step1: Write down the resolution you wand to upscale
e.g. 1440p upscaling to 4k
2560x1440(base resolition)->3840x2160(scaled resolution)

Step2: Select the base resolution as your resolution in-game
select in the "Graphics Settings"->"Resolution"
e.g. 1440p upscaling to 4k
2560x1440

Step3: Use the command prompt to set the scaled resolution
You have to do this step every time you launch the game!
press the key to open the command prompt (backtick key "`" on a qwerty keyboard), and enter the following 2 lines of command:
r_NativeWidth <width> r_NativeHeight <height>
where "<width>" and "<height>" should be subtracted to the scaled resolution, without brackets.

e.g. 1440p upscaling to 4k
r_NativeWidth 3840 r_NativeHeight 2160

Some clues for keeping this setting
I found this by looking at "attributes.xml" under "C:\Users\Username\Saved Games\Kingdomcome\profiles\default\". When using upscaling (900->1080), the following had changed:
<Attr name="nat_res_x" value="1920" /> <Attr name="nat_res_y" value="1080" /> <Attr name="res_x" value="1600" /> <Attr name="res_y" value="900" />
where when not upscaling, "nat_res_x" and "nat_res_y" were 0.
Problem was, changing those 2 values didn't work, I had to dig into the command prompt to change the native resolution. (WHY?)

Update: putting those 2 lines into user.cfg in the game folder didn't change the resolution. (the file is fine, it changed other values like "wh_pl_showfirecursor=1") Maybe something screwy is going on here...

To the devs
It will be really helpful if the game just reads those values from the cfg files, so that resolution upscaling/downscaling would be easy.
Maybe change the settings menu with those 2 resolution settings, and remove (900->1080)?
Last edited by comandoo; Dec 19, 2021 @ 3:12am
< >
Showing 1-3 of 3 comments
n Dec 10, 2023 @ 4:48am 
Posting in case anyone else finds this thread while searching this like I did.
In your autoexec cfg (custom.cfg, user.cfg, whatever)
Add;

r_NativeWidth=
r_NativeHeight=
r_Width=
r_Height=

Width/Height is the render, NativeWidth/NativeHeight is the display.
If you want to enter them in the console, you can also batch them together, like so;
r_Width 2560;r_Height 1440

Additionally, you may want to set kingdomcome\profiles\default\attributes.xml to read only, so it doesn't set the NativeWidth/Height to 1920x1080 on startup.
TheToughestBloke Jul 15, 2024 @ 7:09am 
Thanks!
Задача была при нативном разрешении монитора 3840x2160 в полноэкранном режиме (ПР) получить рендер 2560x1440 (даунскейл). То есть чтобы игра не изменяла исходное разрешение рабочего стола, но рендеринг был в более низком разрешении.
Решение нашёл только такое, пошагово:
1. В настройках игры выставить разрешение 3840x2160
2. Создать файл в кодировке ANSI (не UTF-8) со следующим содержанием:
r_FullscreenNativeRes = 1 r_Fullscreen = 1 r_Width = 2560 r_Height = 1440
Если ПР не нужен - удали всю строку с r_Fullscreen
При запуске игры если у тебя было разрешение рабочего стола 3840x2160 оно не изменится, игра активирует ПР, но рендер будет происходить в разрешении 2560x1440. Вот и вся магия, жаль что разработчики не реализовали это в простом виде в настройках игры


The task was to get a 2560x1440 (downscale) render with the native resolution of the 3840x2160 monitor in full-screen mode. That is, so that the game does not change the original desktop resolution, but the rendering is in a lower resolution.
I found the only solution step by step:
1. Set the resolution to 3840x2160 in the game settings.
2. Create an ANSI (not UTF-8) encoded file with the following content:
r_FullscreenNativeRes = 1 r_Fullscreen = 1 r_Width = 2560 r_Height = 1440
If full-screen mode is not needed, delete the entire line from r_Fullscreen
When you start the game, if you had a desktop resolution of 3840x2160, it will not change, the game will activate full-screen mode, but the rendering will take place in a resolution of 2560x1440. That's all the magic, it's a pity that the developers didn't implement it in a simple way in the game settings
Last edited by zzzephire; Mar 14 @ 4:14pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Dec 19, 2021 @ 2:55am
Posts: 3