Read variable back from Shader

Started by
10 comments, last by ankhd 10 years, 3 months ago


Just to reminder you that copying data from GPU to CPU (using staging buffer) is usually not very fast. You should check the performance, if you need to make a lot of round-triples.

The slowness may be effect of trying to access the copied data right-away after copy. You should do something else before using the results in order to avoid unnecessary GPU-CPU synchronizations. Ie. the CopyResource is asynchronious, but mapping the data right after will make the CPU to wait the GPU to finish it's tasks.

Cheers!

Advertisement
One thing stream out is not slow.
Not in dx10 anyway and a vb with 1 value would be way faster then a render target.

This topic is closed to new replies.

Advertisement