URL:
<http://gna.org/bugs/?13179>
Summary: Unit's move have sometimes a jumpy start
Project: Battle for Wesnoth
Submitted by: alink
Submitted on: Thursday 03/12/2009 at 10:06
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Graphics
Status: None
Privacy: Public
Assigned to: boucman
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.6RC2-r33561
Operating System: linux & windows
_______________________________________________________
Details:
At normal speed, the first hex is sometimes skipped. I believe it's cpu
related, because it happens more with my -O0 build.
For example, I think it's often caused by the time spent to redraw the
unreachable hexes, because:
- when I found a move having the glitch with a normal selection+click, then
the redo+undo moves (which don't display the reach zone) are unaffected.
- but when I cancel a move+attack (which need to refresh the unreachable
zone), the automatic undo has the glitch.
- seems to happen less for fast units, which have less unreachable zone to
refresh.
It's not too frequent but not rare, and in worst cases it does the backwards
teleport similar to bug #13054.
I tried shortly on a faster system and I think it was good there, however I
had the feeling that with acceleration 2x, the first hex was also skipped but
it was not clear because of the speed.
I attach a patch which seems to help, not sure that it fixes it completely,
but at least it reduces its intensity and frequency (a specific move having
the problem, doesn't have it anymore after the change). The idea is to call
new_animation_frame() just before getting time stuff because I believe it may
be needed, and it seems to be the only difference between the first call to
wait_until() and the following others (where there is new_animation_frame()
at each end)
If you can reproduce it on your system, maybe you can indicate me a parameter
that I can try to tweak and see if it helps.
PS: it's a bit hard to find an action causing the glitch, but when you have
one, it's generally does it each time.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thursday 03/12/2009 at 10:06 Name: better_first_move.patch Size: 433B
By: alink
<http://gna.org/bugs/download.php?file_id=5420>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13179>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs