From: Peter <kaf...@xt...> - 2002-10-15 00:02:36
|
> -----Original Message----- > From: gl4...@li... [mailto:gl4java- > use...@li...] On Behalf Of Max Gilead > Sent: Tuesday, 15 October 2002 3:16 a.m. > To: gl4...@li... > Subject: Re: [gl4java-usergroup] Rendering loop > > Peter Ashford wrote: > > > I noticed that in the docs, it's mentioned that you don't have to use > > the GLCanvas passively (i.e., by being sent display events) but that > > you can actively call display() from your own rendering loop. > > > You can also call repaint() which will trigger all other necessary > methods. This is what I use and it works fine with GLCanvas. Is there any difference, in terms of efficiency, between calling repaint() and calling display() directly? I'm mainly wondering whether repaint() will do anything else other than call display()? Cheers, Peter. |