View Full Version : drawing pixels on screen VS texturing quad
04-13-2011, 03:41 PM
I've heard that texturing a quad is faster than drawing pixels on the screen directly. Anyhow, I've come to believe this yet I can't recall where its officially stated by Open GL.
I need this info as reference for uni coursework and was just wondering whether you guys new.
04-13-2011, 04:10 PM
Anyhow, I've come to believe this yet I can't recall where its officially stated by Open GL.
OpenGL is a specification. It describes behavior, not performance. Therefore, there is nothing that is or will ever be "officially stated" about this.
However, it is very simple and obvious, by the nature of GPUs and CPUs. Textures live on the GPU. glDrawPixels reads from CPU memory. Even in the best possible case, where the CPU and GPU share memory, glDrawPixels can only be equal in performance to rendering a quad.
04-13-2011, 07:25 PM
thanks, now if only I can an alternate reference for it.
04-14-2011, 05:09 AM
missing "find" in your sentence maybe ?
The alternate reference is you doing a benchmark program, comparing the speed of both methods.
04-14-2011, 07:09 AM
I don't think glDrawPixels() is available in OpenGL 3.3 if you don't use a compatibility context.
04-14-2011, 02:27 PM
its quite strange being dyslexic as programmer. Or maybe its microsoft word and rush typing the issue.
I just wish I could, I currently desperately running out of time since why game isn't complete yet and my deadline is in a week at most
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.