Jump to content
  • Advertisement
Sign in to follow this  
WooTzu

Fraps - FPS Timer rendered ontop?

This topic is 4230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Fraps is an awesome program that will let you record video's of full-screen DX games at 30fps! Great tool, but how does it work? There's a FPS count that it displays in the corner of the screen (hit F12 to choose which corner). What DX functions or code does Fraps use to make that timer possible? I haven't found any other app that can render ontop of a fullscreen DX game, except Fraps.

Share this post


Link to post
Share on other sites
Advertisement
I'm not exactly sure how Fraps works, since IIRC it also runs on OGL apps. At any rate, the common and simplest method of rendering on top of a D3D window is by hooking the device creation. A former DX forum moderator made a sample showing hooking of a D3D device in C++.

heres a link.

Share this post


Link to post
Share on other sites
Thanks mate! I used w32dasm on Fraps and that's the same method that it uses too.

Funny thing is Fraps will inject itself into any directx app that's running, even that Verticies app bundled with the Direct3D-Hook project. :)

I'm working on creating a simple stopwatch that's rendered ontop of any DX game and the user can hit hotkeys to hide/show or start/stop the stopwatch. This code should do the trick.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!