Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Recording DEMOS and ....Why can't DBPro include an avi recorder?

Author
Message
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 17:12
Fraps etc are too slow. I think that DBPro could include it's own avi recorder. I think that a built in recorder would work better because you could position it at the syncs to take information from that point.

Anyway, I am struggling to make a demo of my latest work.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Jan 2012 18:01 Edited at: 3rd Jan 2012 18:02
Fraps is really fast because that's basically what it does; It records the directX graphics output directly. There are 3 things I can think of that could be a problem to you:

1) Your game doesn't have an FPS limit because you've foolishly used sync rate 0. Fraps will slow your game down to 60 fps for recording.

2) You haven't configured fraps correctly. If fraps is set to 15 fps, your game will run at 15 fps.



3) Your computer in fact originates from World War I, in which case I suggest you give up.

TheComet

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Jan 2012 18:09 Edited at: 3rd Jan 2012 18:11
I think one of the raw avi formats basically just contain a stream of 24-bit uncompressed bitmap images. Using that you could probably write your own functions to dump the screen to such a file (audio would be another thing though). Of course, the file size will quickly grow past huge and venture into the realms of preposterousness.

And yes, fraps will probably be faster still

Edit: Another thing you could do if you experience hard-to-work-with slow downs when recording a demo is to record your input in your application. You can then have it playback that saved session by itself (at whatever frame rate) and then just boost up the video rate afterwards.


"Why do programmers get Halloween and Christmas mixed up?"
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 19:54 Edited at: 3rd Jan 2012 19:55
Yeah I use Sync 0, and am probably running at around 200+, but I figured that a monitor works at 60fps, so why not a recording? Anyway my demo will not run at 60fps.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Jan 2012 19:56 Edited at: 3rd Jan 2012 19:57
I like 3)

has a subtle cuteness to it

have you tried camstudio? Its nice in window mode... if I remember correctly but yeah cap your frame rate unless its an uber fps game

EDIT

Why not?


Hi guys btw

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 19:58 Edited at: 3rd Jan 2012 20:00
Probably because its moving 210 objects at once. But later in the demo I have to move 600000 which I haven't programmed yet.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Jan 2012 20:07
physics simulation?

Are you using PhysX or another one?

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Jan 2012 20:21 Edited at: 3rd Jan 2012 20:22
Quote: "Yeah I use Sync 0, and am probably running at around 200+, but I figured that a monitor works at 60fps, so why not a recording? Anyway my demo will not run at 60fps."


So there's your problem There is absolutely no need to go over 60 fps. Conker's Bad Fur Day on the Nintendo 64 got away with 30 fps when you played multi player. Anything above the monitor's refresh rate is wasted graphics power.

I have 3 solutions for you.

Timer based movement

This is a very elegant solution as it allows you to use sync rate 0. You calculate how long one loop takes, then use that factor to multiply any movement numbers. All of your objects will move at the same speed no matter what frame rate you have. This is advanced, and will probably take a while to implement if you have a lot of code.

The simple fix

Set your sync rate to 60, and go through your program, editing all of the movement values so your objects move at the correct speed at 60 fps. This is the most optimised solution, and your computer will love you for it. However it can take a while if you have a lot of code.

Quick and dirty

If you're really lazy you can set sync rate to 60 and use frame skipping. Very unoptimised, but will work. It looks something like this:

Instead of:



use:



TheComet

Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 3rd Jan 2012 21:53
Screen recorders are pretty resource heavy, so it is always going to reduce the performance of your game somewhat. Your best bet is still fraps though. Try recording at half-size.



Support a charitable indie game project!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 21:59 Edited at: 3rd Jan 2012 21:59
Well I took a hundred objects out of the intro, and got it down to 60fps just about. It looks similar. No good for a science project though when you want 600000 particles. I will link to it in a few minutes when it has uploaded to youtube.

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 22:11
Ok here it is.. Timeloop..

http://youtu.be/5q6cPDTkhp4

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Jan 2012 22:18
Someone care to explain what I just saw?

Although I liked the motion but way too long...

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Jan 2012 22:20
It's an intro to a program I am working on to generate a complete universe in a few lines of code. My idea is that the universe is just repeating a pattern over, and over similar to a fractal. If I am right then it is simple to replicate.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 10th Jan 2012 01:09 Edited at: 10th Jan 2012 01:28
there is plugin that records AVI, here you go the link: (I never used it myself):
http://forum.thegamecreators.com/?m=forum_view&t=75027&b=5
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 10th Jan 2012 02:07
For all of my video demos I use CamStudio with an XVid codec. Turns out pretty good.


DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 10th Jan 2012 04:04
I tally a vote for ZDSoft's Screen/Game recorders. They are somewhat faster at recording AVI videos than Fraps.

I'm Never wrong, I just can't get anything right.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 10th Jan 2012 16:27
Thanks for the ideas! The Dll sounds interesting. I need more hard drive space for the bmp's though.

chromatic3d
14
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 11th Jan 2012 19:30
Pincho Paxton - If I were you I would save bitmaps to disc at 1920 x 1080 and use other software to combine and reduce the video to what ever size and format you want. Yes it will be a huge amount of info gigs. This will give you the most control over the quality. I have done this with stereoscopic cameras and it slowed down the system during capture but the video looks like it was done in real time.

btw I liked the letters moving around in your video.
Naphier
15
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 11th Jan 2012 21:06
Holy serious seizures Batman!
Neat work Pincho, I'm glad to see some options out there other than Fraps... personally I've never had good quality out of it or I should say the quality I like.
I would have likely gone with an image dump every second and then compiled the images into an avi... but that's a bit of work.

Let us know if you find a solution and I'd love to see the exe run on my screen.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 12th Jan 2012 03:04 Edited at: 12th Jan 2012 03:07
@naphier: dump an image every sync (while sync rate=60) to get real life quality.

Login to post a reply

Server time is: 2026-07-09 15:25:01
Your offset time is: 2026-07-09 15:25:01