Java & Fraps = flickering?

I am trying to record my progress with my game making into a video with Fraps, but I am running in to this kind of problem:
0m6n5Gnt7-s

Does anyone have a clue is this Java + Fraps related problem or is this purely just because of my code? Fraps and Minecraft runs just fine but with my own creation I have that problem. As you can see: recording runs well couple seconds but then it starts (I tested and its not related to screen scrolling). Any ideas are welcome. ???

Unfortunately I do not have your solution (yet) but I have experienced a similar issue where every other second or so my game’s Fraps recording will flash blue in the background. I’m using Slick2D as opposed to pure Java2D but if I find a solution I will be sure to inform you.

That would be really glad and I would be thankfully! ;D

wow thats odd. I always use FRAPS and never had a problem…mmmh
well one thing you can do is upload some app of yours that has the problem and let someone else try using FRAPS
may of course also have to do with the FRAPS version, if there was a bug, which I dont know

I thought it was bug I tried 2 versions on Fraps and problem still existed in newer one. Go on and give it a try: http://dhost.info/ttradio/dimMain.jar :slight_smile:

I just ran your game and experienced the flicking your video showed. When I described my visual bug I forgot to mention that I only see the blue flashes in the video, not during gameplay, it’s interesting that Fraps actually makes your gameplay rendering messed up. You can always try trail and error by removing and adding things in hope of it eventually fixing the issue. For example, I’m sure this isn’t causing it but try making your JFrame decorated again and see if that fixes the issue.

your game runs > 60 fps
seems odd already.
in Java2D, you should use BufferStrategy and preferably Vsync

I am giving BufferStratety a try. But fps>60 is odd? How so? :smiley:
I am pretty novice to game making and been working on this project for half a year when I have had a time for coding so I am lacking of knowledge of how things should be done. :stuck_out_tongue:

BufferStrategy works for me with Fraps! Thank you for help Cero! ;D

However I ran to problem: I used to draw my graphics to image which I used for double buffering. I drew that image to screen and checked offset for image from players position (scrolling screen).

If you dont throttle the fps, you are just going to heat up the gpu and stuff, normally just vsync and/or cap at 60 fps

[quote]However I ran to problem: I used to draw my graphics to image which I used for double buffering. I drew that image to screen and checked offset for image from players position (scrolling screen).
[/quote]
Ah yeah, bufferstrategy does double buffering for you, and then you draw to it
bufferstrategy.getgraphics() or something, has been a while for me, just check the javadoc and/or examples, but its simple

Actually I had fps capping in there but I commented it away while trying to find solution to this problem. Dont worry its not a problem. I used 60 fps mainly for this. ;D