Results 1 to 3 of 3
Thread: createBufferStrategy() problem
- 09-10-2011, 12:39 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 48
- Rep Power
- 0
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 anythingLast edited by sgthale; 09-10-2011 at 12:42 AM.
- 09-10-2011, 12:46 AM #2
Re: createBufferStrategy() problem
Can you make a small simple program that compiles and exectues to demonstrate the problem and post it here
- 09-10-2011, 01:06 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 48
- Rep Power
- 0
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


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks