http://bugs.winehq.org/show_bug.cgi?id=26844
Summary: Neon Wars: jerky animations and mouse movement Product: Wine Version: 1.3.18 Platform: x86 URL: http://www.blitwise.com/neonwars.exe OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: julliard@winehq.org
Created an attachment (id=34217) --> (http://bugs.winehq.org/attachment.cgi?id=34217) plain terminal output
Neon Wars is a simple arcade game similar to Asteroids. Mouse movement and animations are extremely slow, jerky in the game. Can be observed in the menus and during gameplay, too. The game offers DirectX and OpenGL rendering modes; the problem is present in both modes. Fullscreen as well as virtual desktop mode produce the same behaviour.
The game was running fine in Wine-1.3.14:
a7da164949ecade05842f89e9255c94ba8b3572a is the first bad commit commit a7da164949ecade05842f89e9255c94ba8b3572a Author: Alexandre Julliard julliard@winehq.org Date: Mon Feb 28 21:55:01 2011 +0100
user32: Retrieve the key state for GetAsyncKeyState from the server.
:040000 040000 323c38cbe68d8c41bfdf8878d4a53bcfb0a76950 ac674bec70c91b1ffcf9caf670168357c5b8110d M dlls
The problem is still present in wine-1.3.18-85-g99f6894.
Link to the shareware version added to URL (only 3 MB).
Fedora 14 Nvidia GeForce 250 / driver 270.30
http://bugs.winehq.org/show_bug.cgi?id=26844
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
--- Comment #1 from GyB gyebro69@gmail.com 2011-04-19 12:40:39 CDT --- Added some keywords.
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #2 from Alexandre Julliard julliard@winehq.org 2011-04-19 13:48:12 CDT --- Created an attachment (id=34227) --> (http://bugs.winehq.org/attachment.cgi?id=34227) Hack to limit GetAsyncKeyState rate.
Does this make a difference?
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #3 from GyB gyebro69@gmail.com 2011-04-19 14:08:25 CDT --- (In reply to comment #2)
Created an attachment (id=34227)
--> (http://bugs.winehq.org/attachment.cgi?id=34227) [details]
Hack to limit GetAsyncKeyState rate.
Does this make a difference?
Yes, the patch made the problem go away and everything is back to normal in the game.
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2011-04-19 14:23:26 CDT --- Interesting. Is your box relatively slow? It's plenty fast enough here without the patch.
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #5 from GyB gyebro69@gmail.com 2011-04-19 14:27:12 CDT --- (In reply to comment #4)
Interesting. Is your box relatively slow? It's plenty fast enough here without the patch.
AMD Athlon 64 x2 4200+ 3 GB Ram Nvidia 250 series card I'm using Gnome with Metacity (no Compiz)
It should be adequate for this small game, I guess.
http://bugs.winehq.org/show_bug.cgi?id=26844
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=26844
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |a7da164949ecade05842f89e925 | |5c94ba8b3572a
http://bugs.winehq.org/show_bug.cgi?id=26844
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Target Milestone|--- |1.4.0
http://bugs.winehq.org/show_bug.cgi?id=26844
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marzojr@yahoo.com
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2011-12-14 10:09:00 CST --- *** Bug 29346 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #7 from marzojr@yahoo.com 2011-12-14 10:35:45 CST --- As I mention on the duplicate bug, Gens rerecording (http://code.google.com/p/gens-rerecording) is also affected by this issue -- to the point where it runs faster in a XP virtual machine than it does on Wine.
http://bugs.winehq.org/show_bug.cgi?id=26844
--- Comment #8 from marzojr@yahoo.com 2011-12-14 12:14:59 CST --- Sorry for double-posting, but the attached hack fixes the issue -- even if I modify it to check for 'GetTickCount() - last_refresh > 1' instead of 'GetTickCount() - last_refresh > 100'.
http://bugs.winehq.org/show_bug.cgi?id=26844
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Target Milestone|1.4.0 |--- Ever Confirmed|0 |1 Severity|normal |minor
--- Comment #9 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-12-14 19:26:51 CST --- Whoever wrote this crap needs to be shot: for(int i = 1; i < 255; i++) { const char* name = s_keyToName[i]; if(name) { int active; if(i == VK_CAPITAL || i == VK_NUMLOCK || i == VK_SCROLL) active = GetKeyState(i) & 0x01; else active = GetAsyncKeyState(i) & 0x8000;
http://bugs.winehq.org/show_bug.cgi?id=26844
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |cb3b7237925a24ba4c5696dd079 | |fdc5d99a48577 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2011-12-15 12:54:53 CST --- Should be fixed by cb3b7237925a24ba4c5696dd079fdc5d99a48577.
http://bugs.winehq.org/show_bug.cgi?id=26844
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2011-12-16 13:29:18 CST --- Closing bugs fixed in 1.3.35.