Interlaced Rendering With Dynamic Resolution (Patreon)
Content
Now that the dynamic resolution is working well, I'm thinking about properly integrating the interlaced rendering into it.
The idea is to only use interlaced rendering during intermission, to allow the dynamic resolution to use higher viewport resolutions during intermission. This mostly sidesteps the interlaced rendering issues outlined in this post, because the intermission camera has a fixed position with extremely limited angular movement.
To achieve this, the dynamic resolution feature must be modified to only update every 4 frames when interlaced rendering is enabled. Right now the dynamic resolution updates every 2 frames, but the interlaced rendering also needs 2 frames (one with all lines rendered, before rendering the next frame with half of the lines) upon activation, to eliminate ghosting across different viewport resolutions. If you enter r_interlacing 3 in the console with the dynamic resolution activated, you'll see what I'm talking about. This would interfere with the framerate measurements of the dynamic resolution, so another 2 frames are needed for the dynamic resolution to accurately assess the interlaced framerate.
The interlaced rendering must also be modified to render a full frame every time the viewport resolution changes. And when the viewport resolution is at 100% with a framerate high enough, the interlaced rendering should be disabled because there's no need for it.