Re: Palette Cycling Problem
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Jan 02, 1999
- 557 views
>This is the one I decided to go for. >It works really fast, but it creates black flickering horizontal >lines on the screen. Is my video card too slow? Wrong driver? >The delay loop helps, but by the time you get it slow enough >to kill the lines it's too slow again. >Is there some slight change which might fix it? You need to wait for the wait-retrace.. a litle piece of code, that waits until the screen is blit to your videocard. You stick that code, right before you update the screen after ll others things you handle in every frame. It will appear slower, however what you are really doing using wait-retrace is make sure, the screen 'keeps' up to you speed. (in other words you slow down, because the screen will otherwise mis an action you have done) I'm sure some one still has the machine code wait-retrace routine on their clipbord. Most alternative graphics engine have it either built-in or provide it through some routine. Ralf