🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

D3D12 SetPredication performance.

Started by
0 comments, last by IceCode.CN 3 years, 8 months ago

Hi guys,

Have a question about SetPredication on D3D12.

We are trying to use it for occlusion culling. However it seems that SetPredication makes the frame really slow.

In a simple test I tried use SetPredication on a buffer with 0s, without any occlusion query or shader writing to that buffer, it still slows down the rendering system significantly. It looks like SetPredication is doing some implicit syncs on GPU.

We're doing SetPredication for each draw call, not sure if that's a good idea.

Has anyone seen a similar problem?

Thanks.

This topic is closed to new replies.

Advertisement