| Home
| Previous
| Next
| Up

### Palette Programming During Double Buffering

If you wish to re-program the palette at the same time as performing double buffering (if the palette changes between frames during double buffering) then you should call the SetDisplayStart function first with the wait for retrace flag set, then immediately following you should program as many palette values as you can before the end of the retrace period. Note that on some older graphics devices and slower computers, you cannot program an entire set of 256 color lookup table entries during the retrace period before the onset of snow, so you will need to stagger the palette change over 2 or more retrace periods. Generally most devices can handle about 100-120 palette entries to be programmed per retrace (most newer hardware does not produce snow at all, so you can program all 256 at once).

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com