Skip to content

Reason for using only a single offscreen FB? #47

Answered by donguklim
donguklim asked this question in Q&A
Discussion options

You must be logged in to vote

I have done some research and found the answer.

Basically, you only make data per swapchain frame if the data is read or written by CPU.
Such data are the swapchain frame buffer itself, which is read by CPU when it is uploaded to the monitor, or constant buffers that contain cpu updated data such as view/projection matrix.

You need to keep maintaining those data per frame because the data is being copied to GPU for redering each frame.

GPU only read/write data need not to be made for each frame, because the rendering command in one queue is executed in order.

Making multiple offscreen FB will be meaningless, because while previous frame is being rendered to the offscreen FB, the commands …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by donguklim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants