Thread: ...flicker woes...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    ...flicker woes...

    Hey guys. My Windows graphics have been fickering badly since I started animating them across the screen. I am currently using BitBlt() and InvalidateRect() which are just too damn slow! Any suggestions?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Ah a classic case of cross posting...Are you using double buffering? Maybe that is your problem.

  3. #3
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    Here is a page that explains double buffering and page flipping http://java.sun.com/docs/books/tutor...doublebuf.html, BTW I know it is Java, concepts are the same though.

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    In theory they are the same in JAVA and in the Win API but really they are completely different to program. Believe me they are different! Long story short I already gave him an example of how to do this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resizing window causes extreme flicker
    By Gerread in forum Windows Programming
    Replies: 6
    Last Post: 05-22-2007, 02:00 PM
  2. Screen Flicker
    By BobMcGee123 in forum Game Programming
    Replies: 9
    Last Post: 04-03-2007, 05:52 AM
  3. Window Flicker
    By JaWiB in forum Windows Programming
    Replies: 6
    Last Post: 09-20-2005, 10:46 PM
  4. How can I stop the screen flicker?
    By Zerohawk in forum Windows Programming
    Replies: 2
    Last Post: 08-23-2005, 12:49 AM
  5. Drawing without flicker?
    By Aidman in forum Windows Programming
    Replies: 5
    Last Post: 06-25-2003, 12:23 PM