Slow Linux client

The worst monsters in the Hearthlands warp the fabric of space and time..

Slow Linux client

Postby Flatlander » Fri Dec 04, 2009 6:21 pm

Hi, I just tried the (official) webstart client on my linux box (Ubuntu 9.04 with ATI x550 & open source drivers) and it was veeery veery slow, probably well under 1 fps. Is that a common problem? I was just curious about what might be the problem since other opengl (including lwjgl) apps run just fine.

To be more specific, how is the rendering done (yeah, I could use the source but my Java isn't quite up to the task)? Does the lwjgl backend demand something exotic that could cause the game to fallback to software rendering (it looks like it should run fine on any old opengl capable card with several hundred fps)? Do you use non-power-of-two textures or graphics primitives with smoothing set (both can completely kill performance with some drivers)? Are the tiles rendered in a batch with one GL call from a single texture etc.?

Oh, and thank you for making one very cool (if a bit too addicting) game!
Flatlander
 
Posts: 2
Joined: Thu Nov 26, 2009 7:18 pm

Re: Slow Linux client

Postby kaka » Fri Dec 04, 2009 7:28 pm

loftar wrote:...when it comes to lag, please ensure that you have your video card manufacturer's drivers installed. That goes triple with nVidia cards on Windows 7 and Linux.


Try that and see if it helps.
It ran pretty well on Ubuntu 9.04 for me, but when I upgraded to 9.10 I started getting extreme lag.
Now I run Debian and it runs smooth again. :)
User avatar
kaka
 
Posts: 673
Joined: Fri Apr 03, 2009 8:31 am
Location: Château de Gâteau

Re: Slow Linux client

Postby Chakravanti » Fri Dec 04, 2009 10:11 pm

Flatlander wrote:Ubuntu 9.04


I'm the last person to start distro dissing. IMho as long as you are open source you are free! Unfortunately I'm fairly certain this is your problem. All those python scripts weigh you down majorly. I would never dream of even trying to play H&H in Ubuntu. I use Slackware 13 and if you want decent performance, I recommend as much. In wesnoth Ubuntu can take up to 10 minutes to finish AI moves on some maps on my computer in Ubuntu. The same maps take less than 30 seconds to crunch in Slackware, for me. My computer is a bit old but I'm guess yours is about as old as mine maybe a year newer at best given the card you quote.

As kaka mention, switching to debian may work equally as well. You'll still get the functionality of well stocked repositories without all the idiot friendly IU scripts.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Re: Slow Linux client

Postby loftar » Sat Dec 05, 2009 2:18 am

Flatlander wrote:Hi, I just tried the (official) webstart client on my linux box (Ubuntu 9.04 with ATI x550 & open source drivers) and it was veeery veery slow, probably well under 1 fps. Is that a common problem?

Unfortunately, my laptop (which is my only computer with an ATi graphics card) is kinda broken and hangs (in hardware) whenever I try to use OpenGL, so I haven't been able to test it with the open source drivers myself.

Flatlander wrote:Does the lwjgl backend demand something exotic that could cause the game to fallback to software rendering (it looks like it should run fine on any old opengl capable card with several hundred fps)? Do you use non-power-of-two textures or graphics primitives with smoothing set (both can completely kill performance with some drivers)? Are the tiles rendered in a batch with one GL call from a single texture etc.?

That would be JOGL rather than lwjgl, but no, I don't think I'm doing anything particularly exotic. You seem more on terms with OpenGL than I am, though, so if there's any chance you could optimize it, I would be very grateful indeed. :) While the client usually runs with a usable framerate, I do think that it reasonably ought to be very much faster than it really is.

As for the specifics, nope; no NPOT textures and no smoothing. The tiles are rendered with one texture per "tileset", so consecutive tiles of one set are rendered from the same texture.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Slow Linux client

Postby Flatlander » Sat Dec 05, 2009 8:27 am

loftar wrote:As for the specifics, nope; no NPOT textures and no smoothing. The tiles are rendered with one texture per "tileset", so consecutive tiles of one set are rendered from the same texture.

Interesting, in my experience that should be enough to get a very good performance for something like H&H client. Another thing which might help a bit with performance would be a working fullscreen mode, none of the clients I tried work in fullscreen mode either with my Vista or Ubuntu machine (low end ATI cards). Maybe it is some JOGL oddity since I don't have any problems with my other opengl programs.

I'm personally more experienced using OGL with C and Common Lisp but if I get some time off playing this I might see if can make any sense of the Java stuff.
Flatlander
 
Posts: 2
Joined: Thu Nov 26, 2009 7:18 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests