First post, by Titan91
https://odysee.com/@Crashdance22:1/scanline-generator-test:d
I have 2 scanline generators, the Mini SLG and SLG 3000 v2. Both are simple and inexpensive, powered by the VGA port itself. I can get Windows 3.1 and Windows 98 to show scanlines properly at 640x480 31KHz horizontal at 60Hz vertical. I tested the Mini SLG on both my 3.1 and 98 Pentium machines. It did not work at all with the 3.1 machine no matter what resolutions I set in Windows or DOS. But, the SLG 3000 does work on the 3.1 computer at this resolution using Windows, but not in DOS.
With DOS's default 720x400 70Hz text mode and 640x480 60Hz, in both cases the SLG 3000 generates scanlines but the reset pin on the flip-flop IC is not triggering on vertical refresh. As a result the picture is flickery and interlaced, and looks wrong. This would be ideal for playing interlaced standard definition video files, but not for generating scanlines for 320x200 Mode 13h resolution games that are otherwise pixelated and line doubled.
This always works in both versions of Windows on both computers. The SLG 3000 has a switch for vsync detection. This is supposed to align the scanlines on every refresh so they don't flicker. The video shows DOS at 720x400 70Hz, then Windows 3.1 at 640x480 60Hz with the vsync detection switch turned off, and the same screen with the switch turned on. The first 2 scenes show the interlaced flickering, the 3rd scene shows normal scanlines.
Since I can't get either of these scanline generators to work properly at all in DOS, I'm wondering if vertical sync polarity is the issue. I'm using VGA240.COM, part of the modern DOSLib set of tools, to set the mode in DOS to 640x480 at 60Hz. The exact same as Windows 3.1 and Windows 98. I have verified with my monitor's menu that it is indeed changing to these values. My understanding is sync polarity is supposed to be negative. Does anyone with some hardware/video mode experience know if vertical sync polarity changes between DOS and Windows? If sync polarity is wrong, the flip-flop chip won't be resetting its timing and will result in wrong looking flickering/misaligned scanlines.