[Bug 99247] glReadPixels on Intel N3700 (Braswell) slower than Raspberry Pi
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 3 01:22:30 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99247
--- Comment #2 from Pierre Proske <pierre at digitalstar.net> ---
The code I'm using is this, I'm pretty sure the format is RGB 888 which I'm
guessing is slow. However on Windows it's running the exact same code.
void ofFbo::readToPixels(ofPixels & pixels, int attachmentPoint) const{
if(!bIsAllocated) return;
#ifndef TARGET_OPENGLES
getTexture(attachmentPoint).readToPixels(pixels);
#else
pixels.allocate(settings.width,settings.height,ofGetImageTypeFromGLType(settings.internalformat));
bind();
int format = ofGetGLFormatFromInternal(settings.internalformat);
glReadPixels(0,0,settings.width, settings.height, format,
GL_UNSIGNED_BYTE, pixels.getData());
unbind();
#endif
}
I'm using the OpenFrameworks Library, grabbing pixels from an FBO:
https://github.com/openframeworks/openFrameworks/blob/0.9.8/libs/openFrameworks/gl/ofFbo.cpp
I'll have a look a getting an API trace uploaded. This is the tool right?
https://github.com/apitrace/apitrace
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170103/e04eb725/attachment.html>
More information about the intel-3d-bugs
mailing list