Framerate
by John D. Dunlap · in Technical Issues · 06/23/2007 (10:05 am) · 5 replies
Greetings,
I just finished compiling a release build of the Mac 1.5.2 AFX version of TGE on Fedora Core 7 Linux. When I start the game everything seems fine. However, when I hit the main GUI I'm told that the OpenAL drivers failed to initialize. I shrugged my shoulders and started a mission. When I got into the mission the framerate died. I ran metrics(fps); and my framrate is between .4 and .9. At the suggestion of someone in GG IRC I ran profilerenable(true); and then profilerdump(); but on the called to profilerdump the game crashes with a segmentation fault. Using a debug build slightly increased the frame rate to between 2-5 fps but calling profilerdump(); still causes a segmentation fault.
I have no idea if the sound and performance problems are actually related. Any hints?
I just finished compiling a release build of the Mac 1.5.2 AFX version of TGE on Fedora Core 7 Linux. When I start the game everything seems fine. However, when I hit the main GUI I'm told that the OpenAL drivers failed to initialize. I shrugged my shoulders and started a mission. When I got into the mission the framerate died. I ran metrics(fps); and my framrate is between .4 and .9. At the suggestion of someone in GG IRC I ran profilerenable(true); and then profilerdump(); but on the called to profilerdump the game crashes with a segmentation fault. Using a debug build slightly increased the frame rate to between 2-5 fps but calling profilerdump(); still causes a segmentation fault.
I have no idea if the sound and performance problems are actually related. Any hints?
#2
1) I have TGE 1.5.2 AFX for Mac compiled and running on Fedora Core 7 and the frame rate is less than 5 fps on a laptop that ran TGE at 30+ fps when running windows.
2) When I run profilerenable(true); and then profilerdump(); from the console the game crashes with a segmentation fault. Also, keystrokes entered into console appear in the console about 2 seconds after being typed.
3) I have a linux dedicated server built from TGE 1.5.2 AFX on CentOS 5, on an old Dell PowerEdge 6450 Quad 900 server with 4 gigs of ram. The keystrokes entered into its console also lag about 2 seconds after being typed. I then tried profilerenable(true) and profilerdump(); on this dedicated server and it too crashed with a segmentation fault.
Can anyone verify this behavior or is there something wrong with my build?
06/23/2007 (12:18 pm)
Well I fixed the audio problem. However, the frame rate is unchanged. I have, however, noticed something else that's a little bit peculiar.1) I have TGE 1.5.2 AFX for Mac compiled and running on Fedora Core 7 and the frame rate is less than 5 fps on a laptop that ran TGE at 30+ fps when running windows.
2) When I run profilerenable(true); and then profilerdump(); from the console the game crashes with a segmentation fault. Also, keystrokes entered into console appear in the console about 2 seconds after being typed.
3) I have a linux dedicated server built from TGE 1.5.2 AFX on CentOS 5, on an old Dell PowerEdge 6450 Quad 900 server with 4 gigs of ram. The keystrokes entered into its console also lag about 2 seconds after being typed. I then tried profilerenable(true) and profilerdump(); on this dedicated server and it too crashed with a segmentation fault.
Can anyone verify this behavior or is there something wrong with my build?
#3
06/27/2007 (11:23 am)
Are you sure you have your 3D drivers installed correctly (something that always gave me trouble in Linux)?
#4
if these libs are not missing other libs. I found out that I was missing libsmpeg and after that no sound issues anymore.Check with ldd on your executable which libs are linked against it.
07/03/2007 (8:12 am)
Check with ldd on linopenal.so.0 and all other libs which are linked against your executableif these libs are not missing other libs. I found out that I was missing libsmpeg and after that no sound issues anymore.Check with ldd on your executable which libs are linked against it.
#5
However, even on the other box, the performance profiler still throws a segmentation faults. I've been chasing it with a debugger on and off for the last few days. The problem seems to stem from the ProfileRoot's member variable mName containing an invalid memory address. I'm not sure if it isn't being initialized or if it it's being assigned an invalid memory address. The thing that's puzzling me is why it's a Linux specific problem. It's not in the platform layer so I would think it has to do with a disparity between VC++ and GCC but I'm not sure what.
Anes,
I did manage to get the sound to work. Regardless, thanks for the info!
07/03/2007 (8:46 am)
Matt, I'm wondering if that isn't the problem because I compiled it on a different Linux box and it runs fine. I suppose it servers me right for buying a laptop with an integrated Intel graphics card. For the time being I think I'll just work on a different box, aggravating though it may be. Linux seems to prefer Nvidia and ATI graphics cards and I'm not sure I want to spend large amounts of time attempting to fix a problem that could very easily be outside of my skill set. I don't know about the rest of you guys but writing device drivers is not one of my strengths.However, even on the other box, the performance profiler still throws a segmentation faults. I've been chasing it with a debugger on and off for the last few days. The problem seems to stem from the ProfileRoot's member variable mName containing an invalid memory address. I'm not sure if it isn't being initialized or if it it's being assigned an invalid memory address. The thing that's puzzling me is why it's a Linux specific problem. It's not in the platform layer so I would think it has to do with a disparity between VC++ and GCC but I'm not sure what.
Anes,
I did manage to get the sound to work. Regardless, thanks for the info!
Torque Owner John D. Dunlap