PDA

View Full Version : rgb bgr... does it matter



dj_indo_420
12-18-2003, 08:17 AM
what's the deal with different color descriptions in opengl, is there a big enough performace boost to change from one to the other, I am still new to opengl and was wondering if I should begin learning using the bgr type rather than rgb, or vice versa, or does matter?

nexusone
12-18-2003, 08:54 AM
I think that rgb or bgr is only used to tell how the data being loaded is formated or stored.

Once loaded it is loaded into rendering memory it is in openGL's internal format.


Originally posted by dj_indo_420:
what's the deal with different color descriptions in opengl, is there a big enough performace boost to change from one to the other, I am still new to opengl and was wondering if I should begin learning using the bgr type rather than rgb, or vice versa, or does matter?

12-18-2003, 09:29 AM
rgb / bgr difference in perf was important in the past when updating textures dynamically, but now it does not seem to be significant with modern video cards.

If you have a doubt, benchmark, with vsync disabled of course.