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.
[C++][DX11] How does Fraps affect a program?
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...
-- 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...
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).
It might be driver issue too (experienced some similar problems with GUI on laptop).
Thanks for the response.
I will definitely try both those things. I'm on a laptop so I'm guessing it's the driver.
I will definitely try both those things. I'm on a laptop so I'm guessing it's the driver.
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement