Results 1 to 3 of 3
  1. #1
    sgthale is offline Member
    Join Date
    Apr 2011
    Posts
    48
    Rep Power
    0

    Default createBufferStrategy() problem

    So I have my application where one JFrame is fullscreened with a createBufferStrategy(2);

    When I run my program, all of the images flash really fast. What am I doing wrong?

    When I minimize the window and then go back to it, It fixes itself. Could it be that it needs the focus? Because Ive tried requestFocus() and it still doesnt do anything
    Last edited by sgthale; 09-10-2011 at 12:42 AM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,423
    Rep Power
    25

    Default Re: createBufferStrategy() problem

    Can you make a small simple program that compiles and exectues to demonstrate the problem and post it here

  3. #3
    sgthale is offline Member
    Join Date
    Apr 2011
    Posts
    48
    Rep Power
    0

    Default Re: createBufferStrategy() problem

    Found a solution. I covered the entire screen with a filled rectangle every draw tick. The problem was that it kept drawing my desktop as a buffer and then quickly buffer the actual game fullscreen so it kept on flickering back and forth rapidly. Anyways I fixed it now. I just needed a bounce buddy

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •