Author Topic: Extremly slow framerates in Linux! (solved!)  (Read 3491 times)

Maplesyrup

  • Guest
Extremly slow framerates in Linux! (solved!)
« on: 21 August 2010, 08:16:42 »
Hi all,
I have been playing glest, which I rather enjoy. So I downloaded megaglest which appears to be even better. However, I cannot play megaglest due to the extremely slow frame rates on any of the 3d background menus and in the game. It shudders and stops constantly. I have disabled compiz, and tried both the latest and the last versions, both having the same problem. My computer isn't a gaming rig, having a core 2 duo 2.4ghz processor, 3Gb of ram and integrated graphics < is that enough to run this game. If anyone can help me it would be great!

update:  this issue is solved see here
« Last Edit: 20 September 2010, 09:09:57 by titi »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Extremly slow framerates!
« Reply #1 on: 21 August 2010, 10:33:11 »
Please give full details of your operating system and video card hardware and what version of Mega-Glest you are running.

Paste the output of:

Windows:

glest_game.exe --version
glest_game.exe --opengl-info

Linux:

./glest --version
./glest --opengl-info

Thanks

Maplesyrup

  • Guest
Re: Extremly slow framerates!
« Reply #2 on: 22 August 2010, 00:39:09 »
Running lucid linux (10.04) 32bit
have integrated intel(R) Graphics Media Accelerator 450 OMHD
Tried megaglest 3.3.6, but now have 3.3.5, both have the same problem
Thanks

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Extremly slow framerates!
« Reply #3 on: 22 August 2010, 12:58:57 »
Hi, some more questions:
 
Did you run glest on the same machine?
Which version of glest worked fine for you? The one from the ubuntu repositories ? Or did you install it using any kind of installer?
How did you install megaglest? Did you use the installer?

In general:
Glest form the ubuntu repositories comes with a very low  default screen resolution( 640x480? ).
MG starts up with 1024x768 by default. Go to the option ( best is ingame ) and switch down resolution to 640x480x16 or maybe 800x600x16 works too.
Then lower some of the other settings too ( shadows off! max light sources 1, maybe switch off 3d textures, but this will look worse )..
Then restart Megaglest ... Maybe it helps

In general your (and maybe all) integrated graphics cards are not very powerful, so don't expect too much.

« Last Edit: 22 August 2010, 13:10:58 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Extremly slow framerates!
« Reply #4 on: 22 August 2010, 15:54:17 »
I'm running the same operating system and I have the same problem with all types of Glest, and anything with 3D graphics, really.  My problem is that Ubuntu doesn't support 3D acceleration on my graphics card.  Maybe you're having the same problem?  Glest itself doesn't take much in the way of resources, so you should have way more than enough processor speed and RAM.  Megaglest shouldn't be much harder to run, but I could be wrong.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Extremly slow framerates!
« Reply #5 on: 22 August 2010, 17:10:43 »
Hey John did you a) install the native video drivers for you card (not the default Open source ones) and b) disable Compiz in the:

System->Preferences->Appearance->Visual Effects area?

Thanks

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Extremly slow framerates!
« Reply #6 on: 22 August 2010, 18:34:24 »
Yes on both counts.  The only drivers available from Via for Linux are outdated and basically worthless.  I have another computer where I can do my 3D stuff, but it's a hassle to switch back and forth between machines.

Maplesyrup

  • Guest
Re: Extremly slow framerates!
« Reply #7 on: 22 August 2010, 19:58:59 »
Yeah, normal glest runs absolutely fine on the same computer.
The one from repositories. Megaglest was installed using an installer.
I changed all the settings to low on megaglest, it changed nothing (well except how the game looks).
It could be my graphics, but when I had vista it played warcraft 3 and halo absolutely fine... I wonder if there is a way if I can see if the 3d graphics are working? John, did glest work fine on your 3d-lacking machine?

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Extremly slow framerates!
« Reply #8 on: 22 August 2010, 20:12:21 »
John, did glest work fine on your 3d-lacking machine?
No, all types of Glest give me equally horrible performance (roughly one frame per second :o).  Even Blender, which is famously light, is cumbersome on my machine.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Extremly slow framerates!
« Reply #9 on: 22 August 2010, 21:17:25 »
I have no idea at the moment  :confused:

MG 3.3.6 should be running the same code to render the menus, so there shouldn't be a difference! 3.3.5 was ... a bit slow :)  .
( Is here maybe someone else who can establish these kind of problems? )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Maplesyrup

  • Guest
Re: Extremly slow framerates!
« Reply #10 on: 22 August 2010, 21:34:14 »
megaglest gives me about one frame per second. For some reason this is the only game I have played on ubuntu- on the same machine, that has given me any problems at all :(.
Yeah it is strange as glest and megaglest have almost identical menus yet there is such a dramatic difference! It doesn't seem like anyone is having these problems either.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Extremly slow framerates!
« Reply #11 on: 22 August 2010, 22:35:41 »
Which CPU do you use? AMD/Intel or something not so common like VIA?
Maybe you can compile a binary on your machine? Probably its a build issue, because our binary is build on ubuntu 8.04 ( there are good reasons for this! )

By the way:
Try to join the irc chat,  maybe people can halp faster when they get direct feedback. ( try it tomorrow! Today the developers are a bit rare there .... )
http://webchat.freenode.net/?&channels=glest
« Last Edit: 22 August 2010, 22:40:55 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Maplesyrup

  • Guest
Re: Extremly slow framerates!
« Reply #12 on: 23 August 2010, 02:33:45 »
An intel core 2 duo 2.4ghz processor.
Oh ok, will join the chat and try and get some help there too.
Thanks for the brainstorming so far :)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Extremly slow framerates!
« Reply #13 on: 23 August 2010, 22:48:52 »
The only drivers available from Via for Linux are outdated and basically worthless.

I'm not sure how fluid you are with Linux. If you'd like someone else to take another look at what hardware you have and whether there may be better drivers available I can do this. If interested, please PM the output of:
Code: [Select]
lspci -knnOr you could paste it into a spoiler message on this board.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Extremly slow framerates!
« Reply #14 on: 24 August 2010, 06:07:57 »
I know how to do fairly basic command-line stuff in Linux, but I'm a bit over my head when it comes to drivers and that kind of thing, so I'd definitely appreciate the help.  I'll go ahead and send you a PM.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Extremly slow framerates!
« Reply #15 on: 27 August 2010, 01:00:39 »
Ok we just discovered that for some people on Linux you need to run the following from your mega-glesr root folder (by default this is in ~/megaglest):

Code: [Select]
mkdir lib_bkp
mv lib/* lib_bkp/
cp lib_bkp/libcurl* lib/
cp lib_bkp/libgnu* lib/
cp lib_bkp/libicu* lib/
cp lib_bkp/liblua* lib/
cp lib_bkp/libxerces* lib/

then re-run mega-glest:

./glest

Dritominous

  • Guest
Re: Extremly slow framerates! (solved!)
« Reply #16 on: 3 September 2010, 04:31:45 »
Woo hoo!  That works!

Thanks!   :thumbup:

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Extremly slow framerates! (solved!)
« Reply #17 on: 3 September 2010, 05:24:44 »
And just for the record, the next release should offer even better performance (for the brave test out SVN trunk). Coming soon.

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Extremly slow framerates in Linux! (solved!)
« Reply #18 on: 20 September 2010, 23:24:57 »
Hmm, why is this thread stickied?
Is it because of this helpful... Well it is at the FAQ already, so...
Ok we just discovered that for some people on Linux you need to run the following from your mega-glesr root folder (by default this is in ~/megaglest):

Code: [Select]
mkdir lib_bkp
mv lib/* lib_bkp/
cp lib_bkp/libcurl* lib/
cp lib_bkp/libgnu* lib/
cp lib_bkp/libicu* lib/
cp lib_bkp/liblua* lib/
cp lib_bkp/libxerces* lib/

then re-run mega-glest:

./glest

harvestman

  • Guest
Re: Extremly slow framerates in Linux! (solved!)
« Reply #19 on: 26 April 2011, 18:35:52 »
Hmm, why is this thread stickied?
Is it because of this helpful... Well it is at the FAQ already, so...
Ok we just discovered that for some people on Linux you need to run the following from your mega-glesr root folder (by default this is in ~/megaglest):

Code: [Select]
mkdir lib_bkp
mv lib/* lib_bkp/
cp lib_bkp/libcurl* lib/
cp lib_bkp/libgnu* lib/
cp lib_bkp/libicu* lib/
cp lib_bkp/liblua* lib/
cp lib_bkp/libxerces* lib/

then re-run mega-glest:

./glest

I just get the message "cp: cannot stat lib_bkp/libcurl* no such file or directory" whenever I type in the lines beginning cp...

What does this mean please?
« Last Edit: 26 April 2011, 18:55:10 by harvestman »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Extremly slow framerates in Linux! (solved!)
« Reply #20 on: 26 April 2011, 19:38:18 »
thats because in 3.5 not all the files are there since some are compiled right into the binary itself, so that message can be ignored.