Jump to content
  • Advertisement
Sign in to follow this  
skothr

DX11 [C++][DX11] How does Fraps affect a program?

This topic is 2491 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

Hi, for the past few months I've been working on my first 3D game with DirectX 11 and C++. It's been going relatively smoothly up until now -- the GUI just doesn't show up unless Fraps is running. I was using it (just the FPS display, no video recording or anything) in the background to keep track of performance, and when I tried debugging once without it, none of the GUI stuff showed up at all.

So I was wondering: What does Fraps actually do in the background of a program? I've looked around and can't find anything on it, and I've looked through my code a bit, but there's a lot of it so I thought I'd rather try to find the source of the "solution". It must be something having to do with updating or loading the bitmaps, or something.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Okay, I've played around a bit, and here's some new info:

-- Starting the program without Fraps, then starting Fraps, makes the GUI show up.
-- Starting the program with Fraps already running makes the GUI show up as well.
-- Closing Fraps while running the program DOESN'T make the GUI disappear again (for both of the above situations).

So it must be some sort of one-time thing that Fraps is continuously doing and my program is failing to do. It can't be initialization of the shaders, loading of the textures, etc. since I do all of that at startup.

...so confused...

Share this post


Link to post
Share on other sites
Try PIX to see if GUI is drawn at all, then check if it's drawn into main texture (if you do RTT).
It might be driver issue too (experienced some similar problems with GUI on laptop).

Share this post


Link to post
Share on other sites
Thanks for the response.

I will definitely try both those things. I'm on a laptop so I'm guessing it's the driver.

Share this post


Link to post
Share on other sites
Okay, I fixed it. It wasn't the driver, and the textures were definitely being drawn. I ended up just fiddling around with it, and it seems a few of my conversions from screen coordinates to normalized coordinates (a few negative signs) were the culprit. I have NO idea why fraps would have fixed this. But I don't really care anymore, I'm just glad it's fixed =D

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!