diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-23 15:47:39 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-23 15:47:39 +1100 |
| commit | 56706244924987852e5ec610941bce8258ae647b (patch) | |
| tree | e9ab9cceb81b9e6c7b06e18920c3246893825f33 /src/timestamp_pool.cc | |
| parent | f34bb0671dd196f0a9bda61d85f2fd8f190769e3 (diff) | |
Implement AntiLag2
Diffstat (limited to 'src/timestamp_pool.cc')
| -rw-r--r-- | src/timestamp_pool.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc index e482654..5149747 100644 --- a/src/timestamp_pool.cc +++ b/src/timestamp_pool.cc @@ -3,6 +3,7 @@ #include "queue_context.hh" #include <chrono> +#include <span> #include <ranges> #include <vulkan/utility/vk_dispatch_table.h> #include <vulkan/vulkan_core.h> @@ -24,9 +25,8 @@ TimestampPool::QueryChunk::QueryChunk(const QueueContext& queue_context) { return qp; }(); - constexpr auto key_range = std::views::iota(0u, QueryChunk::CHUNK_SIZE); - this->free_indices = std::make_unique<free_indices_t>(std::begin(key_range), - std::end(key_range)); + constexpr auto KEY_RANGE = std::views::iota(0u, QueryChunk::CHUNK_SIZE); + this->free_indices = std::make_unique<free_indices_t>(std::from_range, KEY_RANGE); this->command_buffers = [&, this]() -> auto { auto cbs = std::make_unique<std::vector<VkCommandBuffer>>(CHUNK_SIZE); |
