   DX9 stupi* problem - FPS drop, cant believe
  Hi all,this is great: I'm rendering an indoor enviroment at 60-70 FPS, but if I try to render also 3-4 trivial triangles in front of the camera, so they cover 10-20-30% (not more) of the screen, FPS goes to 20.Weird thing: those triangles alone produce 250fps.[ 250fps means at maximum 4ms. But 4ms CAN NOT brings FPS from 70 to 20 !! ]All the triangles are NOT shaded and start beyond the near plane, so the GPU has to clip them. That's the only relevant observation I can say.I can't understand what strange thing is going on... this has NO sense :°°(Has anyone ever experienced a similar thing ?--------------PerfHUD shows that:- without those triangles there are 1.1xx.xxx shaded pixels- with the triangles: 3.5xx.xxxIt's like those triangles disable the ZBuffer, or make it unavailable, "out of order", bringing the overdraw > 5. That's the reason of the frame drop. Question is: WHY ?!!??   
  Maybe when you render those triangles you also change a render state which affects the rest of the scene. The simplest test for that is to do everything for the triangles except the DrawPrimitive() call and see if that changes the frame rate.   ;Quote:Original post by Adam_42Maybe when you render those triangles you also change a render state which affects the rest of the scene. The simplest test for that is to do everything for the triangles except the DrawPrimitive() call and see if that changes the frame rate.Nothing chances for this triangles. In fact, I've already tried to exclude the DrawPrimitive for this few triangles, and magically the FPS goes up :°(Anyone !?! :°(   ;  Try using PIX to see what's going on.  It should tell you what your render states are, textures used, etc and give you an idea of what is taking so long.   ;Quote:Original post by GrafalgarTry using PIX to see what's going on.  It should tell you what your render states are, textures used, etc and give you an idea of what is taking so long.I've already tried to use PerfHUD, but it tell you what happens, not exactly why, and sometimes you cannot deduce the cause :SThank you anyway !!   