Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I used Predicated rendering (based on occlusion query results). Why is my app still the same speed?

0
Posted

I used Predicated rendering (based on occlusion query results). Why is my app still the same speed?

0

First, ensure that the rendering you would like to skip is actually the application bottleneck. If it is not the bottleneck, then skipping the rendering will not help frame rate. Second, make sure that enough time has passed between the issue of the query and rendering that you wish to predicate. If the query has not finished by the time the render call hits the GPU, the rendering will occur anyway. Third, predication only skips certain calls. The calls that are skipped are Draw, Clear, Copy, and Update. State setting, IA setup, Map, and Create calls do not respect predication. If there are a lot of state setting calls around the draw call to be predicated, these states still will be set.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.