From: Tobias L. G. <tg...@ul...> - 2002-03-28 19:04:10
|
I am attempting to execute the following code: public void display() { /* Standard GL4Java Init */ if( glj.gljMakeCurrent() == false ) { return; } for (int iCurrentPixel = 0; iCurrentPixel<maiTestPixels.length; iCurrentPixel++) { maiTestPixels[iCurrentPixel] = (iCurrentPixel*i); } gl.glClear(GL_COLOR_BUFFER_BIT); gl.glRasterPos2i(0, 0); gl.glDrawPixels(640, 480, GL_BGRA, GL_UNSIGNED_BYTE, maiTestPixels); glj.gljSwap(); glj.gljFree(); } in the display() method of a GLAnimCanvas. This code flies on MacOSX(40fps), and drags on Win32 (1fps). I am wondering if anyone here has any idea why 2D imaging stuff on windows is so slow. All comments are greatly appreciated. Peace, Love, and Hair Grease . . . -TOBY |