video sync timing
"Richard Cooper" <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
Any ideas how I might sync to bit 3 of port 0x3DA, the video card's vertical sync signal? Just watching the bit in a loop doesn't seem like a good idea, since the CPU could be off doing something else, but as far as I know any timer function I might use will only be accurate to 1/100 of a second, which wouldn't be much better than watching the bit in a loop. Since things like DOOM run in Linux, I think there must be some way to do it. I've discovered that simutaneously changing the screen data and the color palette without synchronization creates a flicker of a mess on the screen, and DOOM doesn't do that in Linux, so I guess it must be synchronizing somehow.