Fastian
12-15-2005, 06:58 AM
I am trying to add occlusion query support to our engine using OcclusionQueryNV. I have to render around 4000 objects at a given time.
When I run an empty loop running for around 4000 times without rendering anything. I am getting around 1450 fps. As soon as I add only glBeginOcclusionQueryNV and glEndQueryNV to the loop, the fps drops to around 150. As soon as I add a call to glGetOcclusionQueryuivNV, the fps drops to 50 although nothing is being rendered.
I believe just a begin/end query shouldn't be so slow? Am I getting correct results? or is there a problem somewhere? Anyone else experienced anything similar? or my test case is incorrect?
i am trying it on a 6800GT and Athlon64 3000+.
When I run an empty loop running for around 4000 times without rendering anything. I am getting around 1450 fps. As soon as I add only glBeginOcclusionQueryNV and glEndQueryNV to the loop, the fps drops to around 150. As soon as I add a call to glGetOcclusionQueryuivNV, the fps drops to 50 although nothing is being rendered.
I believe just a begin/end query shouldn't be so slow? Am I getting correct results? or is there a problem somewhere? Anyone else experienced anything similar? or my test case is incorrect?
i am trying it on a 6800GT and Athlon64 3000+.