From: Kenneth B. R. <kbr...@al...> - 2002-03-30 03:42:03
|
First, to remove the possibility of any incorrect context management, please convert your program to use the GLEventListener model rather than subclassing GLAnimCanvas. Second, what graphics card do you have on the Win32 machine? Can you provide sample source code? > 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. |