lys icon indicating copy to clipboard operation
lys copied to clipboard

Blit directly from GPU object to texture

Open athas opened this issue 7 years ago • 4 comments

We need to find a way to avoid the copy to CPU memory.

athas avatar Feb 12 '19 11:02 athas

I tried disabling the roundtrip entirely (thereby disabling rendering), and for some reason it did not become that much faster. Maybe this is not the bottleneck we think it is.

athas avatar Feb 25 '19 22:02 athas

The line

FUT_CHECK(ctx->fut, futhark_values_i32_2d(ctx->fut, out_arr, ctx->data));

takes ~1.5 ms on my laptop for every frame. Wouldn't somehow blitting the cl_mem directly get rid of this overhead, or am I missing some details?

nqpz avatar Feb 25 '19 22:02 nqpz

It would, but 1.5ms is not a lot, is all I'm saying.

athas avatar Feb 26 '19 07:02 athas

Well... 1.5 ms is not enough for me to do anything about it, but it would still be nice to get rid of it.

nqpz avatar Feb 26 '19 09:02 nqpz