Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  jogl 1.1.1 poor performance  (Read 4383 times)
0 Members and 1 Guest are viewing this topic.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #30 - Posted 2006-02-13 07:17:22 »

Hmm, I just had a bad thought. Unlike LWJGL, JOGL links against libGL.so rather than dlopen'ing it at run time. I'm aware that the JDK dlopens libraries like libjogl.so with RTLD_LOCAL rather than RTLD_GLOBAL specified, and I'll bet that due to transivity this means that libGL.so.1.2 only has local symbol visibility with JOGL. Knowing that the DRI drivers require libGL.so.1.2 to have RTLD_GLOBAL visibility, I'm guessing this is the fundamental difference between the two configurations. The output from your run with LIBGL_DEBUG set should be enough to confirm this.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #31 - Posted 2006-02-14 01:31:05 »

Actually, before you go to all of that effort, could you try a new JOGL build?
http://download.java.net/media/jogl/builds/tmp/jogl-linux-drihack.tar.gz

As far as I understand it, that build should fix the problem. Please let me know whether it does. If so, we have some work to do on the JOGL side to be able to implement this cleanly.
Offline drslinky1500

Senior Newbie





« Reply #32 - Posted 2006-02-14 22:43:53 »

Well, heres the output before the new build. I will post the new immediately after

JOGL OUTPUT:

libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/radeon_dri.so
libGL error: dlopen /usr/lib/dri/radeon_dri.so failed (/usr/lib/dri/radeon_dri.so: undefined symbol: _glapi_Dispatch)
libGL error: unable to find driver: radeon_dri.so
!!! GLX server vendor : SGI
!!! GLX server version: 1.2
!!! GLX client vendor : SGI
!!! GLX client version: 1.4
!!! glXChooseVisual recommended visual id 0x27
!!! Fetched XVisualInfo for visual ID 0x27
!!! Resulting XVisualInfo: visualid = 0x27
libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/radeon_dri.so
libGL error: dlopen /usr/lib/dri/radeon_dri.so failed (/usr/lib/dri/radeon_dri.so: undefined symbol: _glapi_Dispatch)
libGL error: unable to find driver: radeon_dri.so
JOGLTest3: GL_VENDOR: Mesa project: www.mesa3d.org
JOGLTest3: GL_RENDERER: Mesa GLX Indirect
JOGLTest3: GL_VERSION: 1.2 (1.5 Mesa 6.2.1)


LWJGL OUTPUT:

libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/radeon_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /home/project/.drirc: No such file or directory.
LWJGLTest3: GL_VENDOR: Tungsten Graphics, Inc.
LWJGLTest3: GL_RENDERER: Mesa DRI Radeon 20050528 AGP 4x x86/MMX+/3DNow!+/SSE NO-TCL
LWJGLTest3: GL_VERSION: 1.2 Mesa 6.3.2
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline drslinky1500

Senior Newbie





« Reply #33 - Posted 2006-02-14 23:08:04 »

It seems to have worked. This is great. It has also brought the performance of my code up to par.

JOGL Output:

libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/radeon_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0)
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /home/project/.drirc: No such file or directory.
JOGLTest3: GL_VENDOR: Tungsten Graphics, Inc.
JOGLTest3: GL_RENDERER: Mesa DRI Radeon 20050528 AGP 4x x86/MMX+/3DNow!+/SSE NO-TCL
JOGLTest3: GL_VERSION: 1.2 Mesa 6.3.2



I am about to post another error I have been having in both operating systems. It has to do with glReadPixels. I will put this in a new thread. This hack has not fixed this one issue. Everything else seems to be working great!

Greg
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #34 - Posted 2006-02-15 00:23:18 »

Great. Thanks for patiently running all of these test cases. I'll get this fix into the JOGL tree as soon as possible.
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (29 views)
2014-11-22 12:13:56

xFryIx (71 views)
2014-11-13 12:34:49

digdugdiggy (50 views)
2014-11-12 21:11:50

digdugdiggy (44 views)
2014-11-12 21:10:15

digdugdiggy (38 views)
2014-11-12 21:09:33

kovacsa (62 views)
2014-11-07 19:57:14

TehJavaDev (67 views)
2014-11-03 22:04:50

BurntPizza (64 views)
2014-11-03 18:54:52

moogie (80 views)
2014-11-03 06:22:04

CopyableCougar4 (80 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!