Question regarding bgfx's present (or SetFBO) #2798
-
Hello, I am investigating an issue where a compute pass (which has its own view id) seems to cause DirectX 11 renderer to present, this is due to the fact that bgfx seems to call setFrameBuffer irrespective of whether a pass is a draw or compute pass, causing it to present even in cases when it can be avoided. Please see attached bgfx's code snippet image for reference I think we should be calling these only in the case where it's not a compute pass, i.e. we should add a check at line 5657 Please let me know if it's expected behavior or if it's a bug in bgfx? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is correct behavior. Compute is executed first during view pass. View pass might contain both. In this particular case if you just have compute, you could create 1x1 frame buffer and assign it to view to prevent present. |
Beta Was this translation helpful? Give feedback.
This is correct behavior. Compute is executed first during view pass. View pass might contain both.
In this particular case if you just have compute, you could create 1x1 frame buffer and assign it to view to prevent present.