Jerky Graphics

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

User avatar
Alex Petrov
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Wed Oct 10, 2007 12:42 pm
Location: London

Post by Alex Petrov »

Hello everyone!
I have recently found Oolite - what a nice surprise!
I used to play Elite in 80's on ZX Spectum clone which I soldered myself from parts. I also played First Encounters.

I installed Oolite on FC6 and I have a year old PC (dual core Athlon).
I was really surprised that the game started stuttering and become unresponsive when I was attacked by about 5 boogies. It does not happend when I run the game under Windows, at least it did not happened so far.
Any ideas? Sorry if I missed the answer somewhere, I just registered on this board
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

When the game starts stuttering press Shift-F.

This will display your frame rate, number of objects and collisions. Sometimes the number of objects reaches over 400 and this causes problems.

You can try the solution I proposed on the previous page. It may help.
User avatar
Alex Petrov
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Wed Oct 10, 2007 12:42 pm
Location: London

Post by Alex Petrov »

davcefai wrote:
When the game starts stuttering press Shift-F.

This will display your frame rate, number of objects and collisions. Sometimes the number of objects reaches over 400 and this causes problems.

You can try the solution I proposed on the previous page. It may help.
Thanks, davcefai.
Your trick worked.
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

I tried Oolite out on my new system; Intel Core Duo and onboard VGA (Elitegroup 945GCT-M2). Runs fine in Windows, but in Ubuntu 7.10 the framerate is about 1 frame/sec. I think I have the right drivers installed - no problem playing vids etc.

Is there a way of getting the framerate up which doesn't involve splashing out on a graphics card?
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

The ability to render videos is not connected to a card's 3D abilities.

Have you installed the correct driver? The standard Linux one may not be suitable for gaming. For example one needs Nvidia drivers for Nvidia cards. The xorg nv driver simply can't hack it.

Test your card by running glxgears This will report the frame rate (or possibly crash :) ).

I think you may need the Intel driver, possibly this one:

http://www.intel.com/support/chipsets/sb/CS-020683.htm
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

I think that he right driver comes with my distribution; there's a driver for Intel 945 chipset in the preferences, which seems to work fine for the Compiz Fusion 3d effects. glxgears reports over 1300 fps.

I followed the link you posted and ended up here. Should I check it out? (I'm reluctant to poke around with graphics driver if I'm not 100% I know what I'm doing)
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

Update:
When Oolite starts, the framerate is more like 100 fps. When I launch, it drops to 4. Witchspace to another system and it rises to 15/20.
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

Then it is most likely an OXP problem........I think
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

Can't be an OXP, I don't have any installed. nb I get the same whether it's 1.65 or 1.70.
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

Should I check it out?
It shouldn't cause problems. You choose which driver to use by editing xorg.conf and changing the "driver = xxxxx" line.

However your symptoms are a trifle strange. It seems that the card starts out OK and runs out of steam.

Can you increase the memory allocated to the card?
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

There must be something like norton running in the background then........(grasps another straw)
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

Can you see any correlation between framerate and:

1. How "busy" the screen is?
2. The number of objects in the system (Press Shift-F)

(1) could indicate that the graphics system is not coping.
(2) would normally indicate a lack of available horsepower. Check what else is running and chewing up cycles.
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

It seems to be related (1) rather than (2). I launch and it's slow, I jump into a new system and I'm OK-ish until ships start to show up, at which point it slows down again.
User avatar
davcefai
---- E L I T E ----
---- E L I T E ----
Posts: 400
Joined: Sun Dec 03, 2006 9:07 pm

Post by davcefai »

Well, my considered opinion is that the problem lies in the graphics system.

If the game runs OK in Windows with the same hardware then one has to blame the driver. However do try to increase the RAM available to the video card.
lolwhites
Deadly
Deadly
Posts: 183
Joined: Sat Jul 29, 2006 6:45 pm
Location: France

Post by lolwhites »

davcefai wrote:
do try to increase the RAM available to the video card.
Excuse my ignorance, but how do I do that?
Post Reply