Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: OpenGL Flickering  (Read 1671 times)

0 Members and 1 Guest are viewing this topic.

Jalfor

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
OpenGL Flickering
« on: September 23, 2011, 12:27:31 pm »
I'm trying to make an electronics simulator kind of thing which needs to be quite fast to allow really bit simulations to run fast on it. When I draw something just once, and leave it there it flickers and I would really rather not go through all the pixels every frame as that would be rather slow being a pixel based thing so it would need to draw each one individually.

Thanks for any help :)
If a picture tells 1000 words, then a YouTube video clearly tells 1000000 making a YouTube video obviously a larger work than the Lord Of The Rings, or some other massive novel. Thus are the laws of YouTube videos.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL Flickering
« Reply #1 on: September 23, 2011, 12:31:00 pm »
There's no persistency, windows need to be refreshed continuously.
Laurent Gomila - SFML developer

Jalfor

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
OpenGL Flickering
« Reply #2 on: September 23, 2011, 12:45:15 pm »
What do you mean refreshed? I'm doing App.Display(); every time...do I have to also redraw all the OpenGL stuff as well?
If a picture tells 1000 words, then a YouTube video clearly tells 1000000 making a YouTube video obviously a larger work than the Lord Of The Rings, or some other massive novel. Thus are the laws of YouTube videos.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL Flickering
« Reply #3 on: September 23, 2011, 01:06:29 pm »
Quote
do I have to also redraw all the OpenGL stuff as well?

Yes, that's what I meant.
Laurent Gomila - SFML developer

 

anything