Files

1.9 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
Always always always use an async copy queue archive twitter https://x.com/SheriefFYI/status/1737126160402665958 Sherief, FYI SheriefFYI 1737126160402665958 2023-12-19 2026-08-26 false
archive
twitter
SheriefFYI
Always always always use an async copy queue

Source

Thread

1/ @SheriefFYI ^1737126160402665958

Always always always use an async copy queue

2/ @NOTimothyLottes ^1737161181524095352

@SheriefFYI

To be fair, that is only the case on PC if one can afford to delay waiting for transfer completion for a few frames (aka via cmd completion fence on VK), because queue to queue syncs (aka via VK semaphores) are perf-death-style CPU interrupt based ...

Branches: archive/threads/SheriefFYI/2023-12-19-always-always-always-use-an-async-copy-queue/2023-12-19-lectem-wait-is-this-an-issue-with-vk-only-or-d3d12-too

3/ @NOTimothyLottes ^1737162074172637506

@SheriefFYI

... so for latency sensitive stuff, either stuff it via CPU writes to DEVICE_LOCAL+HOST_VISIBLE (or large BAR), or a limited kernel size copy shader if needing image stuffing

Branches: archive/threads/SheriefFYI/2023-12-19-always-always-always-use-an-async-copy-queue/2023-12-19-SheriefFYI-queue-to-queue-syncs-via-cpu-need-to-go, [[archive/threads/SheriefFYI/2023-12-19-always-always-always-use-an-async-copy-queue/2023-12-19-woookie-yup-right-now-i-async-copy-mesh-and-textures-data]], archive/threads/SheriefFYI/2023-12-19-always-always-always-use-an-async-copy-queue/2023-12-19-pATjako-i-dont-do-async-textures-buffers-in-my-gpu, archive/threads/SheriefFYI/2023-12-19-always-always-always-use-an-async-copy-queue/2023-12-20-Meetem4-whats-the-best-way-of-doing-that-if-rebar-is-not