Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Daniel Gee <zefria@xxxxxxxxx>
- Date: Sat, 12 Jan 2008 19:54:01 -0800 (PST)
Alright, here's a SSCCE that seems to still capture the problem:
http://paste.uni.cc/18083
As you should be able to see, if you tap a key extremely rapidly
then it'll take one step at a time over and over just fine. But
if you hold a key down running from one edge to another then it'll
become laggy and only show every few 'frames' of movement.
So it seems I need either a different (faster) way to display and
get input, or a way to slow down how often a held key generates
Action Events. There might be a third option I'm not seeing.
Because of the nature of the game, I can't just update the
player's label only, since there will be many other creatures,
as well as "fog of war" being updated over a variable area
every turn. The exact area would depend on the shape of the level.
(On the same aside, I was using line width slightly less than
80 in the second post, which I figured was short enough for
everyone. Oh well.)
.
- Follow-Ups:
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Lew
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Andrew Thompson
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- References:
- Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Daniel Gee
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Andrew Thompson
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Daniel Gee
- Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- From: Andrew Thompson
- Choppy refresh problem with JLabels and JMenuItem accelerators
- Prev by Date: Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- Next by Date: Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- Previous by thread: Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- Next by thread: Re: Choppy refresh problem with JLabels and JMenuItem accelerators
- Index(es):