Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  
  Any idea why my game slows down when I try to record a video of it using Fraps?  (Read 1366 times)
0 Members and 1 Guest are viewing this topic.
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Posted 2013-05-08 05:30:04 »

I'm working on a 2D Platformer as my starting project and I have a very bare/skeletal version of it so far. I'm documenting my progress and I record short snippets of gameplay as I go along using Fraps. What I do is run the game from Eclipse and then begin video recording through Fraps...

Does anyone have any idea why the game slows down considerably when I begin recording the gameplay video?

I've recorded gameplay videos before for other games (e.g. - Bioshock, Torchlight II, Diablo 3, Borderlands, Fallout 3) and I've rarely noticed any slowdown with those games as the recording was being done. At the most, there would be very slight stutters, but not a total slowdown like what I'm experiencing with my own game.

Thoughts?

Offline pixelapp

Junior Member




Pixelapp


« Reply #1 - Posted 2013-05-08 05:51:25 »

My guess is that "Fraps" is using the java Robot class to take screen shots. This class is very slow.

Cloud games and fun.
Online HeroesGraveDev

JGO Kernel


Medals: 260
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #2 - Posted 2013-05-08 05:55:59 »

If you use Windows, there is Microsoft Expression Encoder.

It's free, records HD, and doesn't interfere with performance.

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

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #3 - Posted 2013-05-08 06:01:33 »

My guess is that "Fraps" is using the java Robot class to take screen shots. This class is very slow.

Hmmmmm idk how Fraps handles Java games, but I know people have used it to record Minecraft without any problems (although there are isolated cases that experience problems).

If you use Windows, there is Microsoft Expression Encoder.

It's free, records HD, and doesn't interfere with performance.

Oh, cool, I've never heard of that. Will try later. Thanks.

Online HeroesGraveDev

JGO Kernel


Medals: 260
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #4 - Posted 2013-05-08 06:07:47 »

Not many people have heard of it, and say "Fraps is better" etc. etc.
They change their minds later.
The only difference between the free and paid version is that if you get the free one, you don't have to deal with Microsoft Tech Support Wink

Offline 65K
« Reply #5 - Posted 2013-05-08 06:13:01 »

Thoughts?
Cpu load of the game is too high.
Quality settings of Fraps need to be lowered.

Offline Vladiedoo
« Reply #6 - Posted 2013-05-08 06:13:44 »

You probably already checked this but make sure your code is running efficiently. Running Eclipse + your code + Fraps might be reaching a bottleneck that a game + Fraps doesn't.

Are you isng LibGDX or something else for your base code?

On a related note: I recommend checking out VisualVM, it's free software that monitors any JVM running and will report to you useful statistics such as CPU usage and time spent calling each method.

Pre-Post: 65K beat me to it lol
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #7 - Posted 2013-05-08 06:27:22 »

Thoughts?
Cpu load of the game is too high.
Quality settings of Fraps need to be lowered.
You probably already checked this but make sure your code is running efficiently. Running Eclipse + your code + Fraps might be reaching a bottleneck that a game + Fraps doesn't.

Are you isng LibGDX or something else for your base code?

On a related note: I recommend checking out VisualVM, it's free software that monitors any JVM running and will report to you useful statistics such as CPU usage and time spent calling each method.

Pre-Post: 65K beat me to it lol

I have a hard time believing that my barely 500-line code - even if it is potentially unoptimized - can cause more problems for Fraps than mainstream AAA games on high settings...  Undecided

All I have is a ball that can be controlled to move left, right and jump + a few platforms

Box2D's DebugRenderer is running though... haven't thought of turning that off yet before recording...

Yup, I'm developing using libgdx Smiley

Offline 65K
« Reply #8 - Posted 2013-05-08 06:32:23 »


I have a hard time believing that my barely 500-line code - even if it is potentially unoptimized - can cause more problems for Fraps than mainstream AAA games on high settings...  Undecided
You can hog cpu time with much less code...
What does the task manager say about that ?

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #9 - Posted 2013-05-08 06:34:12 »


I have a hard time believing that my barely 500-line code - even if it is potentially unoptimized - can cause more problems for Fraps than mainstream AAA games on high settings...  Undecided
You can hog cpu time with much less code...
What does the task manager say about that ?

Will check when I get home Smiley At work right now, unfortunately... Emo

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

JGO Wizard


Medals: 70
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #10 - Posted 2013-05-08 07:35:28 »

The bottleneck may also be your harddisk, and have nothing to do with your other system specs. If you write the recordings on the same harddisk as your OS runs on, it is dead slow. I get a big performance boost using fraps when using an external harddisk (even when connected through USB). Here's a good explanation of why this is so.

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #11 - Posted 2013-05-08 07:50:45 »

The bottleneck may also be your harddisk, and have nothing to do with your other system specs. If you write the recordings on the same harddisk as your OS runs on, it is dead slow. I get a big performance boost using fraps when using an external harddisk (even when connected through USB). Here's a good explanation of why this is so.
Although if that's the case, I should also experience slowdown when recording other games, right?

Offline Grunnt

JGO Wizard


Medals: 70
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #12 - Posted 2013-05-08 08:53:28 »

Although if that's the case, I should also experience slowdown when recording other games, right?

Possibly, but I'm not sure. These things are quite complex and I'm no expert, but it may be worth trying.

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #13 - Posted 2013-05-08 09:42:09 »

Thanks anyway, at least I have a number of things to look at now once I get home.

Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #14 - Posted 2013-05-08 20:25:53 »

If you use Windows, there is Microsoft Expression Encoder.

It's free, records HD, and doesn't interfere with performance.

Thanks a bunch! I thought for the longest time it was my crappy computer slowing the fps down when I was recording but it was just the software! Microsoft Expression Encoder works great, thanks again

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #15 - Posted 2013-05-08 23:51:08 »

I'm such a dunderhead... :-/

The reason why I was experiencing slowdown is because I had my video recording FPS capped at 24fps... Y_Y

I didn't think to look at that at first because 24fps for other games seemed nice and gave the videos - especially for FPS games - some sort of "cinematic" look.

But for this video, it flat out just slowed my game down Tongue

Anyway... finally got to record a vid now. Thanks.

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.

Pippogeek (38 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

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

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

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

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

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

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

BurntPizza (53 views)
2014-09-19 03:14:18
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!