Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java & Fraps = flickering?  (Read 1881 times)
0 Members and 1 Guest are viewing this topic.
Offline kwanttitatti

Senior Newbie





« Posted 2012-10-16 23:17:53 »

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: <a href="http://www.youtube.com/v/0m6n5Gnt7-s?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/0m6n5Gnt7-s?version=3&amp;hl=en_US&amp;start=</a>
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.  Huh
Offline Vladiedoo
« Reply #1 - Posted 2012-10-16 23:42:25 »

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.
Offline kwanttitatti

Senior Newbie





« Reply #2 - Posted 2012-10-16 23:46:02 »

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!  Grin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2012-10-17 00:18:28 »

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

Offline kwanttitatti

Senior Newbie





« Reply #4 - Posted 2012-10-17 00:20:59 »

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  Smiley
Offline Vladiedoo
« Reply #5 - Posted 2012-10-17 00:35:30 »

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.
Offline Cero
« Reply #6 - Posted 2012-10-17 00:47:36 »

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

Offline kwanttitatti

Senior Newbie





« Reply #7 - Posted 2012-10-17 15:16:02 »

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? Cheesy
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. Tongue
Offline kwanttitatti

Senior Newbie





« Reply #8 - Posted 2012-10-17 16:40:53 »

BufferStrategy works for me with Fraps! Thank you for help Cero!  Grin

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).
Offline Cero
« Reply #9 - Posted 2012-10-17 16:49:49 »

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).

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

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kwanttitatti

Senior Newbie





« Reply #10 - Posted 2012-10-17 16:51:46 »

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
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.  Grin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Grunnt (20 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (108 views)
2014-09-10 06:39:09
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!