Author Topic: [(p) fixed] 3.7.1, Ubuntu 12.04 / i915: Multi-second delay when selecting units  (Read 1708 times)

jordonwii

  • Guest
Hey guys,
When I select units by clicking and dragging, the game freezes for couple seconds or more, depending on how many units are being selected (more units = longer delay). There also appears to be a corresponding spike in CPU usage on usually only one of my cores. However, when double-clicking on a unit to select all units of that type, there is no delay. It appears to be related to the clicking and dragging only.

I'm using MegaGlest 3.7.1 on Ubuntu 12.04 32-bit, installed via the .run file on the website. I also noticed this issue in MegaGlest 3.6.3 (the one in the Ubuntu repos). My processor is a quad-core i7.

Is there a solution to this? Because it's making the game really hard to play.
« Last Edit: 18 January 2013, 11:56:06 by tomreyn »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Multi-second delay when selecting units on Ubuntu 12.04
« Reply #1 on: 12 January 2013, 07:38:03 »
Please read the sticky post about how to report a bug.

What video card and driver are you using?

jordonwii

  • Guest
Re: Multi-second delay when selecting units on Ubuntu 12.04
« Reply #2 on: 12 January 2013, 17:53:38 »
Please read the sticky post about how to report a bug.

Alright, just did. Sorry about that.

What video card and driver are you using?
The integrated graphics card on the second-gen Intel i7, the "Intel HD Graphics 3000". The exact processor is the 2670QM. The driver is the one used by default in Ubuntu. I'm not sure how to find out what driver is being used.

Also, there is no software running in the background besides the Dropbox app. The only MegaGlest setting that I have changed from the default is the resolution, from the default 800x600 to 1366x768, which is the exact resolution of my screen. I just reverted it to the default, and there is a noticeable decrease in the amount of lag when clicking and dragging, but it's definitely still there.

Let me know if you need any more information.

Edit: Ubuntu's System Settings lists the graphics driver as:
"Intel® Sandybridge Mobile x86/MMX/SSE2"
« Last Edit: 12 January 2013, 18:00:52 by jordonwii »

jordonwii

  • Guest
Re: Multi-second delay when selecting units on Ubuntu 12.04
« Reply #3 on: 12 January 2013, 19:19:27 »
Also, I can confirm that there is no delay at all running the same version of MegaGlest, same hardware, on Windows 7 64-bit, using default driver, any resolution.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Multi-second delay when selecting units on Ubuntu 12.04
« Reply #4 on: 12 January 2013, 19:28:18 »
Are there any other games that offer the 'click and drag' ability in Ubuntu that you could try to see if it gives the same response? If you find any that work well i could look at the code to see what is done different, we use a standard opengl mechanism for selecting units on screen. Its the same code for windows and Linux.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Multi-second delay when selecting units on Ubuntu 12.04
« Reply #5 on: 12 January 2013, 22:42:39 »
Some other games available for Ubuntu which allow drawing a selection box around units:
  • Warzone 2100 (3D game)
  • Spring (3D engine / games)
  • 0 A.D.  (3D game)
  • Battle for Wesnoth (2D game)
  • BOS Wars (2D game?)
« Last Edit: 16 January 2013, 03:50:29 by tomreyn »
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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Ok here is something you can try. Grab the latest svn build:
https://forum.megaglest.org/index.php?topic=8753.0

After replacing the binary only (megaglest is the filename) edit your glestuser.ini located in ~/.megaglest and add this:
Code: [Select]
EnableColorPicking=true
Then let me know if it works better?



Edit (tomreyn, 2013-05-12): Replaced outdated snapshot links.

« Last Edit: 12 May 2013, 01:40:43 by tomreyn »

jordonwii

  • Guest
Sorry for the long delay. That works almost flawlessly! Thank you very much. What does that mean the problem is?

Also, is there anything else I can do?

 


Edit (tomreyn, 2013-05-12): Replaced outdated snapshot links.
« Last Edit: 12 May 2013, 01:41:29 by tomreyn »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
You said it works almost perfectly with the development build. Please tell us which revision you're using (it says on the main menu below the MegaGlest logo as well as when you run megaglest --version) as well as what works well, what not?

Note that while using the development builds (which are, to date, still compatible for network games with 3.7.1 games), you can remove the EnableColorPicking=true setting off glestuser.ini since it is now the new default (though this could change, yet).

It would also be good to learn how well drawbox selecting units on some of the other games listed above works for you.
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 · · ·

jordonwii

  • Guest
You said it works almost perfectly with the development build. Please tell us which revision you're using (it says on the main menu below the MegaGlest logo as well as when you run megaglest --version) as well as what works well, what not?

There's still a very slight delay between when the box goes over a unit and when the unit is selected. It doesn't freeze the game as before, and it's almost imperceptible, so it's not too much of a problem, I don't think. I have to yet to play a full game, however. When I do, and if it's still noticeable, I will let you know.

I'm using revision 4036.

It would also be good to learn how well drawbox selecting units on some of the other games listed above works for you.
I tried Warzone 2100 and it worked flawlessly drawing over and selecting the default units on a default game.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.7.1, Ubuntu 12.04 / i915: Multi-second delay when selecting units
« Reply #10 on: 22 January 2013, 04:40:45 »
Ok please try out svn Rev:4037

 

anything