Original Post
I've got a strange things here. I'm talking about a 3D engine, using directx9 and shaders 2.0. The problem appeared when I try to add an omni light in a scene, in addition of a directional light. The performance was multiplied by 2. Yes, by adding a light, the program run 2 times faster... I discover that when the omni light is added, an occlusion query is issue (begin and end). So, I add a fake occlusion query issue, and now, the program run 2 times faster. What's happen ? I think this is somethings like a resource management issue or a cpu/gpu paralization issue... any idea ?