Sign in to follow this  
Cornstalks

Screen Flickering

Recommended Posts

I've made a Mandelbrot Set, and it works great on my computer. But when I tried to show it to my math teacher (who used to teach programming), the screen went crazy and flickered like none other. The program is written in C++, uses OpenGL and double buffering. I haven't implemented Vertical Sync as I'm not sure how, but even if I did know how I'm not sure it would fix the problem. Both the teacher and I are using Windows XP. I have an ATI Radeon x600 256mb Hyper Memory video card, but I'm not sure what he has. Also, I've got some static text boxes, some edit boxes, and a push button that are all children of the window that is being rendered to. I can see and use them just fine on my computer, but on my teacher's computer, they are visible for half a second and then enveloped in the screen's flickering and disappear. What could be the problem, and how can I fix it? I can post all the source you want, but there are about 20 files (this includes the files for a little engine that I've made that I'm linking to).

Share this post


Link to post
Share on other sites
Quote:
Original post by MikeTacular
I haven't implemented Vertical Sync as I'm not sure how, but even if I did know how I'm not sure it would fix the problem.


It's enabled by default so that's likely not an issue. He may not have fast enough video card to handle you app. Did you ever test it on a machine that wasn't yours?

-me

Share this post


Link to post
Share on other sites
I doubt his video card isn't advanced enough, because I only calculate and render all the pixels only once there is a change (like a change in window size, you've zoomed in somewhere in the fractal, etc...), and so the calculate and render functions get called once. SwapBuffers() is being called each loop though.

I've tested it on my second computer and it worked perfectly fine. My second computer has an ATI video card too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this