#25 Related to #3565658, does not work with glew 1.9.0

closed-fixed
nobody
None
5
2013-03-24
2012-12-22
Paulo Andrade
No

Fedora rawhide was updated to glew 1.9.0 two days ago, and megaglest rebuilt.
I also did rebuild it locally and ensured I had everything up to date in my rawhide
computer, and the problem persisted.

The game is unplayable because mouse clicks are incorrect, usually right clicking
anywhere is interpreted as right click to close to the "town center". Double click
to select multiple units, or drag a rectangle to select multiple units also ends up
selecting wrong units, and cannot unselect after that.

The problem only manifests after game start, that is, menus work, and only
change I am aware is glew update. But it may be a side effect of something
else, so I am also attaching valgrind log of a few seconds in game.

Discussion

  • Paulo Andrade
    Paulo Andrade
    2012-12-22

    megaglest-valgrind.txt

     
  • Tom Reynolds
    Tom Reynolds
    2012-12-22

    For what it's worth, this seems to be the same effect I'm having on Ubuntu 12.10 (libglew1.8) but did not have on Ubuntu 12.04 (libglew1.6). EnableColorPicking=1 in glestuser.ini works around it (but at a performance penalty and with side effects). So far I blamed mesa for it.

     
  • Paulo Andrade
    Paulo Andrade
    2013-01-11

    Damn, I somehow missed the reply, and just figured it out now that
    EnableColorPicking=1 cures the problem... Just commented about
    it in https://bugzilla.redhat.com/show_bug.cgi?id=889685
    At least I got some good megaglest debug sessions :-)
    This appears to not happen in all drivers, well, at least not in the
    intel driver, and apparently is a mesa software fallback problem.

     
  • Mark Vejvoda
    Mark Vejvoda
    2013-01-15

    As a sidenote we are looking at improving and possibly defaulting to color picking as selectbuf is deprecated in newer opengl and buggy in various drivers.

     
  • Paulo Andrade
    Paulo Andrade
    2013-01-15

    Besides the screen flashing, another issue I noticed was that selection with color picking is not possible sometimes. Most common case is to have several workers build a "town center" and end inside the selection box of the building; for worker this can be worked around with "I" to select idle workers... but "box selecting" should work in that case (after better testing, box selecting appears to work with other driver, but that driver also works with selectbuf).

     
  • Tom Reynolds
    Tom Reynolds
    2013-01-15

    Please try again, I think this issue where workers within a buildings' selection box are not selectable is fixed in r4025 with EnableColorPicking=1

     
  • Mark Vejvoda
    Mark Vejvoda
    2013-01-16

    svn has the flickering fixed and color picking is now the default way to select units

     
  • Mark Vejvoda
    Mark Vejvoda
    2013-03-24

    No reply so i am closing this bug.

     
  • Mark Vejvoda
    Mark Vejvoda
    2013-03-24

    • status: open --> closed-fixed