roman-murashov / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

weapon box lag/dont stay open #789

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start hedgewars and fight
2. right click

What is the expected output? What do you see instead?
now there is a little lag for the whole game and the waepon box opens, and 
sometimes it closes the box instantly again

What version of the product are you using? On what operating system?
0.20.5

Please provide any additional information below.
Kubuntu 13.10
Intel GMA 4000(2008)
Qt: 4.8.5
KDE: 4.12.2
(but this issue is there since ages)

Original issue reported on code.google.com by plusf...@gmail.com on 9 Feb 2014 at 3:04

GoogleCodeExporter commented 8 years ago
You probably have some performance problem with your graphics card.

What FPS are you getting in game (you can enable FPS in options).

The "not staying open"  - not sure. Possibly 2 right click events were sent, or 
you got impatient.

I'd suggest trying the reduce quality slider.  One of the things it does 
disable the slide-in animation of the weapon menu.
Weapon menu drawing itself has been significantly improved from the past 
(single draw op instead of hundreds).

If your FPS is sucking, you can try a smaller game window, checking for gfx 
driver update, and disabling compositing in your window manager.  As well as 
the reduce quality slider ofc...

Original comment by kyberneticist@gmail.com on 9 Feb 2014 at 6:54

GoogleCodeExporter commented 8 years ago
> What FPS are you getting in game (you can enable FPS in options).
i'm always on 62fps.

> The "not staying open"  - not sure. Possibly 2 right click events were sent, 
or you got impatient.
Is there something to test the 2mouse events? in normal desktop mode it works 
like it should, only hedgewars and only ingame has this problem

> I'd suggest trying the reduce quality slider.  One of the things it does 
disable the slide-in animation of the weapon menu.
> Weapon menu drawing itself has been significantly improved from the past 
(single draw op instead of hundreds).
doesnt change anything, this little lag still happens, even with the lowest 
quality

> If your FPS is sucking, you can try a smaller game window, checking for gfx 
driver update, and disabling compositing in your window manager. 
doesnt change anything, with or without compositing, fullscreen, big window, 
little window. the lag still is present with a rightclick.

Original comment by plusf...@gmail.com on 10 Feb 2014 at 12:55

GoogleCodeExporter commented 8 years ago
Hm. Really should be no lag at all on lowest quality since the animation is 
pretty much gone, unless the lag is in the game actually getting the event.
Can you pastebin a game log?
Also, what fps do you get if you run:
vblank_mode=0 glxgears

With the default window size?

Do you have any other window managers you could try in? Maybe a plain X session?

Original comment by kyberneticist@gmail.com on 10 Feb 2014 at 2:51

GoogleCodeExporter commented 8 years ago
> Hm. Really should be no lag at all on lowest quality since the animation is 
pretty much gone, unless the lag is in the game actually getting the event.
i dont think its a performance thing. because of a hint from my niece i found 
out that the same lag is there with right, left and middle mouse button, but 
not with scroll (while scrolling) and not with side mouse buttons or keyboard 
input
Using another mouse dont helped here

> Can you pastebin a game log?
http://paste.kde.org/pemctfshv

> Also, what fps do you get if you run:
> vblank_mode=0 glxgears
vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
5151 frames in 5.0 seconds = 1030.123 FPS
5207 frames in 5.0 seconds = 1041.331 FPS
5258 frames in 5.0 seconds = 1051.562 FPS
5120 frames in 5.0 seconds = 1023.135 FPS

With the default window size?
my default size is 1024x600 (display screensize is 1920x1080)

Do you have any other window managers you could try in? Maybe a plain X session?
i now tried it with the following starter
killall kwin& hedgewars& sleep 60 && kwin

the first thing i noticed was that this lag is gone without windowmanager. 
after the minute kwin starts again, with compositing any everything normal, but 
the lag is still not back. even after a complete game close and start, there is 
no lag anymore.

i will reboot now and see if the lag will come back.
thx so far :)

Original comment by plusf...@gmail.com on 10 Feb 2014 at 4:43

GoogleCodeExporter commented 8 years ago
back after reboot and no lag is there anymore. i didnt do something other, than 
your glxgears test, and my try without. so what happened?

if it wont come back here on this computer, i'll try the netbook next weekend 
(it's my mothers, so its not here right now)

Original comment by plusf...@gmail.com on 10 Feb 2014 at 4:58

GoogleCodeExporter commented 8 years ago
Well, you restarted KDE, maybe KDE was having issues.
After all, you said killing kwin helped.
If it comes back, I'd definitely try another window manager, and maybe filing a 
bug against KDE.
You might want to check for error messages in .xsession-errors, dmesg and xorg 
log in future.

Your glxgears rate is kinda "meh" (that is, about 18x slower than mine) but, 
eh, is an intel card.

Anyway, since it works now, going to go w/ "not a hedgewars problem"

Original comment by kyberneticist@gmail.com on 10 Feb 2014 at 5:18

GoogleCodeExporter commented 8 years ago
> Well, you restarted KDE, maybe KDE was having issues.
no, just kwin. And i do this every day, because i shut down it every day  ^^.. 
and KDE Plasma :P .. not KDE > 
http://dot.kde.org/2009/11/24/repositioning-kde-brand 
>After all, you said killing kwin helped.
>If it comes back, I'd definitely try another window manager, and maybe filing 
a bug >against KDE.
On the netbook runs unity, with the same issue.. maybe a driver bug?

> You might want to check for error messages in .xsession-errors, dmesg and 
xorg log in future.
some idea what i should look for?

> Your glxgears rate is kinda "meh" (that is, about 18x slower than mine) but, 
eh, is an intel card.
i just need a stable, smooth desktop without any problem with new kernels or 
xorgs/wayland. so there is no other option yet.

> Anyway, since it works now, going to go w/ "not a hedgewars problem"
thanks for your help :)

Original comment by plusf...@gmail.com on 10 Feb 2014 at 5:39

GoogleCodeExporter commented 8 years ago
Unity is kind of a hog too, I'd try MATE :)
https://l3net.files.wordpress.com/2013/07/cmp-all3.png

MATE is also, at least w/ default WM, uncomposited.  I know you don't think 
that was issue, but, can't hurt to try that across the board just in case...

WRT what to look for, sorry, no idea, but, you know, anything that is making 
the logs noisier than usual.

Original comment by kyberneticist@gmail.com on 10 Feb 2014 at 5:44