opengl: attempt to scale vhs effect "fuzzyness"

this makes it appear the same in all resolutions, similar to software, while also improving performance quite a bit on higher resolutions
This commit is contained in:
Alug committed 2026-01-22 14:18:06 +01:00
1 parent a37b7858b0
commit 422c480a69
1 file changed
+4 -2
+4 -2
View File
@@ -3629,8 +3629,10 @@ void GL_RenderVhsEffect(fixed_t upbary, fixed_t downbary, UINT8 updistort, UINT8
uint32_t r = rand();
const float stride = 2.f/scrwh;
for (i = 0; i < 1; i += stride)
const float dup = min(scrwf / BASEVIDWIDTH, scrwh / BASEVIDHEIGHT);
const float ystep = 2.f/scrwh * dup/4.f;
for (i = 0; i < 1; i += ystep)
{
// avoid calling rand thousands of times
r ^= r >> 13;