On 3/29/07, Sebastian Menge <seb...@un...> wrote:
>
> Am Donnerstag, den 29.03.2007, 14:50 -0400 schrieb Scott Thompson:
> > I have implemented double buffering, but the implementation slows the
> > reaction time of the application by about half-a-second, and is now
> > almost as annoying as the flickering. I'm looking into making the code
> > more efficient, but I may run into issues because of the way the
> > terminal class interacts with the application.
>
> What OS are you using? I'm on Ubuntu/Gnome. I had the flickering too,
> but it went away with the implementation of
I'm also using Ubuntu/Gnome, and it flickers quite often when you page
around the screen quickly. I can focus my priorities on other areas if you
don't think it's of any interest to the project.
> //put the terminal into a AWT-Panel to avoid flickering
> > Panel panel = new Panel(new BorderLayout()) {
> > public void update(java.awt.Graphics g) {
> > /* Do not erase the background */
> > paint(g);
> > }
> > };
The code I added paints to a Graphics object that is not currently being
displayed, and then swaps it with the one being displayed. It removes any
traces of flickering, but as a result the cursor is about half a second
behind.
|