[comp.sys.sgi] Bitten by the mapcolor bug

pepke@gw.scri.fsu.edu (Eric Pepke) (04/04/91)

I was bitten by the mapcolor bug today on a 4D-240 GTX.  It was in a 
routine which set a lot of colors in a tight loop.  For the first time, I 
compiled it with -O2.  This speeded up the loop just enough so that the 
mapcolor sometimes failed.

I put in a tiny delay, and everything worked fine.

If you are getting unexpected colors in color map mode, check to see if 
you are calling mapcolor too fast.

Eric Pepke                                    INTERNET: pepke@gw.scri.fsu.edu
Supercomputer Computations Research Institute MFENET:   pepke@fsu
Florida State University                      SPAN:     scri::pepke
Tallahassee, FL 32306-4052                    BITNET:   pepke@fsu

Disclaimer: My employers seldom even LISTEN to my opinions.
Meta-disclaimer: Any society that needs disclaimers has too many lawyers.