Why my mods chainging window size 1:1 with hmd (Patreon)
Content
I will try to explain how graphics engines work to the best of my knowledge. I could be wrong in some parts and I'm open to correction if I misunderstand anything.
What you see on screen is the result of processing dozens or sometimes hundreds of shaders. Most visually appealing games often use a technique called "deferred rendering," which renders different parts of the scene into multiple buffers. The states between shaders are stored in buffers with predefined sizes.
When you set the resolution in a game, it adjusts all buffer sizes to achieve the best performance without reducing visual quality. For example, there's no need to create a texture larger than the render target for shadows (this is a simplified example). Similarly with textures, each loaded texture has multiple detail levels (called "mip levels"), and the shader or engine will select the appropriate detail level based on your resolution. The level of detail (LOD) for 3D models is also calculated based on the resolution the engine is using.
Even if you add an additional render target to the final rendering pass to the swapchain, all the details, texture quality levels, and intermediate buffers will still be calculated based on the original resolution. Another option is to intercept the swapchain buffer creation and change the texture size - this will fit the window without changing, but the problems described above will remain the same. Options like UEVR (which uses a separate render graph for another texture) are only possible because that engine is fully open and designed for this capability from the beginning. One possible solution might be to change the internal resolution while intercepting window messages to modify the window size without passing these changes back to the Windows API, but I haven't found a definitive answer for this approach and don't know if it's possible.
That is why I stick to 1:1 resolution with hmd, even though it is ugly looking on monitor.