Re: Graphics Problem




"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
news:0XmUe.263562$on1.21586@xxxxxxxxxxx
> "Mary Wallker" <mary@xxxxxxxxxx> wrote in message
> news:4321f82b_3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Hi, Thanks for your reply. I have enclosed a simple program which
>> displays this problem (I had actually already posted it in my original
>> post but I'm glad to post it again as there was a slight bug in the
>> original one).
>
> Okay, this one works. So like I said, the way to solve your problem is
> to do double buffering. Go to
> http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html for
> a tutorial on it.
>
> As for the sluggishness of your code, I suspect it's due to the call to
> sleep(5) inside the while loop.
>
> - Oliver
Hi Oliver,

Many thanks for finding the time to point me in the right direction. I am
now looking into double buffering.

Regards,

Mary.


.



Relevant Pages

  • Re: Buffered socket I/O with sysread-style blocking?
    ... because using select you know not to call until at least one character ... >> blocking or select loop stuff. ... (or eof condition) ... socket has nothing to do with buffering or how you read it. ...
    (comp.lang.perl.misc)
  • Re: How to disable print() function buffering in perl?
    ... > as the loop is executing. ... > important enough to output at runtime (and thus, disable print ... > buffering)? ... Is there such an error output in PERL that I could use? ...
    (comp.lang.perl.misc)
  • Re: MPI_Send, with MPI_Iprobe and MPI_Recv
    ... MPI_Sendjust falls through and fails, but returns, or MPI_Recv ... Is there a possible buffering issue after doing an MPI_Sendand then ... if(flag from Iprobe is set to true) { ... end loop ...
    (comp.parallel.mpi)
  • Re: Buffered socket I/O with sysread-style blocking?
    ... UG> how does O_NONBLOCK mean busy loop? ... UG> also the OP mentioned http can send binary after text? ... UG> deep misunderstanding of net protocols, sockets, buffering, ...
    (comp.lang.perl.misc)
  • Re: need some help with I/O
    ... >> I will work on a graceful way to exit the loop. ... Providing a graceful exit from the loop may greatly reduce the ... the fflush or change the buffering mode to line buffering. ...
    (comp.lang.c)