Skip to content

Commit ee3fafe

Browse files
committed
lower mdi allocation timeout time point offset to std::chrono::milliseconds
1 parent 17faf3a commit ee3fafe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbl/ext/ImGui/ImGui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ namespace nbl::ext::imgui
816816

817817
auto mdiBuffer = smart_refctd_ptr<IGPUBuffer>(m_mdi.streamingTDBufferST->getBuffer());
818818
{
819-
auto timeout(std::chrono::steady_clock::now() + std::chrono::seconds(1u));
819+
auto timeout(std::chrono::steady_clock::now() + std::chrono::milliseconds(1u));
820820

821821
size_t unallocatedSize = m_mdi.streamingTDBufferST->multi_allocate(timeout, MDI_ALLOCATION_COUNT, multiAllocParams.offsets.data(), multiAllocParams.byteSizes.data(), MDI_ALIGNMENTS.data());
822822

@@ -1020,7 +1020,7 @@ namespace nbl::ext::imgui
10201020
{
10211021
assert(listener != nullptr);
10221022
m_subscribers.emplace_back(listener);
1023-
return m_subscribers.size() - 1;
1023+
return m_subscribers.size() - 1u;
10241024
}
10251025

10261026
std::optional<size_t> UI::unregisterListener(size_t id)

0 commit comments

Comments
 (0)