You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 25, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: TileUpdateManager/DataUploader.h
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,6 @@ namespace Streaming
109
109
ComPtr<ID3D12CommandQueue> m_mappingCommandQueue;
110
110
111
111
// pool of all updatelists
112
-
// copy thread loops over these
113
112
std::vector<UpdateList> m_updateLists;
114
113
Streaming::AllocatorMT m_updateListAllocator;
115
114
@@ -125,18 +124,18 @@ namespace Streaming
125
124
// thread to handle UpdateList submissions
126
125
voidSubmitThread();
127
126
std::thread m_submitThread;
128
-
Streaming::SynchronizationFlag m_submitFlag;
129
-
std::vector<UINT> m_submitTasks;
127
+
Streaming::SynchronizationFlag m_submitFlag;// sleeps until flag set
128
+
std::vector<UpdateList*> m_submitTasks;
130
129
RingBuffer m_submitTaskAlloc;
131
130
132
131
// thread to poll copy and mapping fences
133
132
// this thread could have been designed using WaitForMultipleObjects, but it was found that SetEventOnCompletion() was expensive in a tight thread loop
134
133
// compromise solution is to keep this thread awake so long as there are live UpdateLists.
0 commit comments