LWJGL
May 22, 2013, 01:26:44 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Intense flicker and no antialiasing on primitives  (Read 2317 times)
irongiant
Newbie
*
Posts: 20


« on: June 04, 2007, 11:09:44 »

I've read some posts about double buffering and know, now, that LWJGL uses it by default.
Now, the problem is my application has an intense flickering; i don't call Display.swapBuffers() and i've seen code running smoothly without this call. Is it really needed to swap the buffers.
I turned on vsync and the flicker disappeared after one, two seconds.
Also, i enabled smooth on polygons, lines and points to get antialiasing but without any results.
I could use some help...

Thank you for your time.
Logged
Fool Running
Nerdus Imperius
*****
Posts: 742


« Reply #1 on: June 05, 2007, 06:27:24 »

Quote
Is it really needed to swap the buffers.
I'm pretty sure that you need to call this if you are using double buffering.
Quote
Also, i enabled smooth on polygons, lines and points to get antialiasing but without any results.
Not very many graphics cards support this anymore. The best way to get antialaising is to use supersampling by passing a value greater than 1 (I think) of samples to the PixelFormat of the Display.create().
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
irongiant
Newbie
*
Posts: 20


« Reply #2 on: June 05, 2007, 06:42:47 »

I'll see what i can do about the buffers. BTW, the buffers should be swapped at the end of the loop or at the begining? I swap them at the begining of the loop but sometimes i still can see some flickering...
About the antiliasing: i tried and enabled smooth some days ago and it worked fine, although i was using a 2D projection. Maybe that's the problem. I'll search and learn about supersampling, etc to get it working.
I realized the graphics card's driver aren't well installed; that may be a problem  Embarrassed

Thanks for the help!
Logged
Fool Running
Nerdus Imperius
*****
Posts: 742


« Reply #3 on: June 05, 2007, 10:09:51 »

Quote
BTW, the buffers should be swapped at the end of the loop or at the begining?
Sorry, it looks like Display.update() does the swapping correctly, so as long as you call Display.update() it should work Grin. It doesn't matter when you call Display.update() (other than not in the middle of your rendering Wink )
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!