[MPlayer-users] POSSIBLE FIX OpenGL with Nvidia binary driver
Adam Manock
abmanock at earthlink.net
Tue Dec 24 22:16:01 CET 2002
I'm running RedHat 8.0
w/ NVIDIA_GLX-1.0-4191
and NVIDIA_kernel-1.0-4191
[adam at blackbox GL-test]$ ./gltest
Creating 1024x1024 texture...
Resize: 640x480
Resize: 640x480
0.148 fps (gen: 0% upload: 99% render: 0%)
0.148 fps (gen: 0% upload: 99% render: 0%)
[adam at blackbox GL-test]$ ./gltest2
Creating 1024x1024 texture...
Resize: 640x480
Resize: 640x480
62.730 fps (gen: 29% upload: 64% render: 5%)
63.513 fps (gen: 29% upload: 64% render: 6%)
62.987 fps (gen: 29% upload: 64% render: 5%)
FAST_BLIT not so fast after all?
diff -u gltest.c gltest2.c
--- gltest.c 2001-02-24 15:28:52.000000000 -0500
+++ gltest2.c 2002-12-24 15:29:24.000000000 -0500
@@ -71,20 +71,20 @@
gen_time+=GetRelativeTime();
-#ifdef FAST_BLIT
- // upload texture:
- for(i=0;i<image_height;i++){
- glTexSubImage2D( GL_TEXTURE_2D, // target
- 0, // level
- 0, // x offset
- i, // y offset
- image_width, // width
- 1, // height
- (BYTES_PP==4)?GL_RGBA:GL_RGB, // format
- GL_UNSIGNED_BYTE, // type
- ImageData+i*dstride ); // *pixels
- }
-#else
+//#ifdef FAST_BLIT
+// // upload texture:
+// for(i=0;i<image_height;i++){
+// glTexSubImage2D( GL_TEXTURE_2D, // target
+// 0, // level
+// 0, // x offset
+// i, // y offset
+// image_width, // width
+// 1, // height
+// (BYTES_PP==4)?GL_RGBA:GL_RGB, // format
+// GL_UNSIGNED_BYTE, // type
+// ImageData+i*dstride ); // *pixels
+// }
+// #else
glTexSubImage2D( GL_TEXTURE_2D, // target
0, // level
0, // x offset
@@ -94,7 +94,7 @@
(BYTES_PP==4)?GL_RGBA:GL_RGB, // format
GL_UNSIGNED_BYTE, // type
ImageData ); // *pixels
-#endif
+// #endif
up_time+=GetRelativeTime();
[adam at blackbox GL-test]$
More information about the MPlayer-users
mailing list