Original Post
(well this turned out to be not so "quick" but if you only want the question, skip to the last line) When I minimize my direct3d program, it begins to eat up 100% cpu and causes my graphics card to emit a high-pitched screetching noise (which can't be good because I don't think those things are supposed to make sounds!). I have only been using Vsync to limit the fps, and it clearly doesn't work when the window is not visible. Placing my BeginScene() through my Present() in an if(isWindowVisible) gets rid of the screetching noise, but not the cpu usage. Putting a Sleep(1) in my main loop worked, but that just doesn't seem "elegant." So, I was wondering what is generally done when a D3D progam is minimized?