Refine GVFG preview pacing and error reporting
- Replace non-blocking Present retries with Present(0, 0), allowing DXGI to wait for presentation dependencies on the dedicated preview worker. - Change preview admission from newest-frame replacement to bounded FIFO delivery with three pending/upload reservations and one presenting slot. - Expire queued preview frames after 50 ms before GPU processing and skip new preview submissions only when the bounded slot capacity is full. - Track queue order and queue age without retaining SDK-owned frame memory; capture continues releasing each SDK frame after the synchronous upload. - Service only synchronous Windows sent messages while waiting for preview mutexes, worker shutdown, idle drain, and capture-thread join to avoid an HWND-owner/DXGI deadlock without dispatching queued application callbacks. - Preserve internal preview pacing and audio queue counters while removing expected busy, expired, and audio-eviction reports from the normal UI log. - Reserve delivery error logs for preview/render failures, video or audio frame-ID anomalies, audio write failures, and final accounting mismatches. - Remove the normal stop summary and the audio queue-drop field from the status display so expected pacing adjustments are not presented as faults. - Update the public preview comments and diagnostic documentation for the FIFO capacity, queue-age boundary, blocking Present behavior, and log policy. - Keep the capture SDK, driver interfaces, frame ownership, GPU conversion precision, and public delivery-statistics structure unchanged. Validation: - User testing reported approximately 18% GPU utilization for one 1920x1080 Y210 10-bit preview channel. This was not independently benchmarked. - A user-provided long-run log contained 13,715,695 received video frames with no preview render failures; periodic preview skips matched the confirmed 60.000 FPS versus 59.94 Hz pacing difference. - The same log showed periodic audio playback-queue eviction without audio frame-ID gaps or write failures; this is retained as internal diagnostic accounting rather than reported as a source-delivery error. - Static source review and git diff --check passed. No application, shader, or driver build was performed by the agent, and runtime deadlock behavior has not been independently reproduced or validated.
This commit is contained in:
@@ -5,11 +5,11 @@ The preview worker now runs:
|
||||
1. Execute the upload slot's command list (the SDK frame was already released by the caller).
|
||||
2. Convert packed YUY2/Y210 into a full-resolution FP16 target.
|
||||
3. Sample that FP16 target directly into the 8-bit or 10-bit swapchain, preserving aspect ratio.
|
||||
4. Present. Startup retries repeat only Present, not the draw.
|
||||
4. Present(0, 0). DXGI handles presentation waits; no application retry loop.
|
||||
|
||||
Compared with the previous preview, this removes one full-frame FP16 CopyResource per image. The 8-bit path also removes an intermediate BGRA8 draw and quantizes only at the swapchain. FP16 precision and the requested swapchain bit depth remain; no capture-frame decimation was added. Scaled 8-bit output may differ slightly because rounding now occurs after scaling instead of before it.
|
||||
|
||||
Each of the three upload slots owns its SRV; the worker no longer creates an SRV for every preview frame. YUY2/Y210 shaders use one packed texture load per output pixel. The old ProcAmp settings were fixed at neutral, so unused neighbor sharpness reads and neutral color adjustments were removed; BT.709 coefficients, packing, Y210 word shifts and odd-tail chroma behavior remain. Constant-buffer data updates only when source dimensions change, but its binding is restored each draw.
|
||||
Each of the four upload slots owns its SRV; the worker no longer creates an SRV for every preview frame. YUY2/Y210 shaders use one packed texture load per output pixel. The old ProcAmp settings were fixed at neutral, so unused neighbor sharpness reads and neutral color adjustments were removed; BT.709 coefficients, packing, Y210 word shifts and odd-tail chroma behavior remain. Constant-buffer data updates only when source dimensions change, but its binding is restored each draw.
|
||||
|
||||
Preview-only resource initialization allocates only the FP16 conversion target, omitting scene, BGRA8 export, RGB10 export and NV12 planes. Export conversion still uses the default full resource path; no public capture or buffer API signature changed. Export shaders are not compiled for preview-only initialization.
|
||||
|
||||
@@ -24,3 +24,7 @@ User validation reported after the source change: GPU utilization decreased by a
|
||||
Build the preview DLL with the changed shared pipeline source. If distributing the SDK GPU buffer converter, rebuild that DLL too because it shares the shader source. Keep the APP and preview DLL from the same delivery-statistics API revision.
|
||||
|
||||
On the target Ryzen 7 7700 system, compare identical resolution/FPS/window size and input formats before/after. Check 8-bit and 10-bit colors (including gradients), resize/fullscreen, repeated Start/Stop, Present skip counts and GPU engine utilization. Also verify public BGRA8/RGB10A2/NV12 buffer conversion if shipping its rebuilt DLL. Capture HRESULT details if 10-bit still fails; do not infer insufficient GPU capacity solely from utilization.
|
||||
|
||||
Expected preview pacing skips and audio queue evictions remain internal counters and are not logged. Preview/render failures, frame-ID anomalies, audio write failures, and delivery-accounting mismatches are logged as errors, aggregated at most once per five seconds. Mutex/drain/join waits service synchronous Windows sent messages without dispatching queued application input. Blocking Present still has no application timeout; device hangs and window transitions require hardware validation.
|
||||
|
||||
Preview queue policy: three pending/upload-reserved slots plus one presenting slot. Consume in enqueue order, keep frames within a 50 ms queue-age limit, and skip incoming frames only when capacity is full. Expired queued frames are counted in the existing replaced field (APP label: expired). This is not a 50 ms bound on blocking Present or physical scanout.
|
||||
|
||||
@@ -67,9 +67,9 @@ typedef struct
|
||||
/*
|
||||
* Preview presentation statistics.
|
||||
*
|
||||
* present_fps counts only frames accepted by DXGI Present. A frame skipped
|
||||
* because the non-blocking swapchain is busy is excluded. The rate uses
|
||||
* successful presents from the most recent five seconds.
|
||||
* present_fps counts only frames accepted by DXGI Present, not physical
|
||||
* scanout. The rate uses successful presents from the most recent five
|
||||
* seconds. Pending preview replacements are excluded from this rate.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
@@ -87,7 +87,7 @@ typedef struct
|
||||
{
|
||||
uint64_t submitted;
|
||||
uint64_t presented;
|
||||
uint64_t replaced;
|
||||
uint64_t replaced; /* Queued frames discarded after the 50 ms age limit. */
|
||||
uint64_t busy;
|
||||
uint64_t failed;
|
||||
uint64_t cancelled;
|
||||
@@ -133,8 +133,10 @@ GVFG_PREVIEW_API gvfg_preview_status_t gvfg_preview_prepare(
|
||||
*
|
||||
* The frame memory remains owned by the caller and must remain valid until
|
||||
* this function returns. GPU conversion and Present continue on the internal
|
||||
* preview worker. If preview falls behind, an older queued preview frame may
|
||||
* be replaced; capture ownership and capture-frame delivery are unaffected.
|
||||
* preview worker. Up to three pending frames are retained in FIFO order.
|
||||
* Frames waiting longer than 50 ms are discarded; if the queue is full,
|
||||
* the incoming frame is skipped. No SDK frame is retained for queueing.
|
||||
* The age limit excludes time spent rendering or waiting inside Present.
|
||||
*/
|
||||
GVFG_PREVIEW_API gvfg_preview_status_t gvfg_preview_render_frame(
|
||||
gvfg_preview_handle handle,
|
||||
|
||||
@@ -20,6 +20,30 @@
|
||||
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
namespace
|
||||
{
|
||||
constexpr size_t kMaxPendingFrames = 3;
|
||||
constexpr size_t kUploadSlotCount = kMaxPendingFrames + 1;
|
||||
constexpr auto kMaxQueueAge = std::chrono::milliseconds(50);
|
||||
// Blocking DXGI calls may send synchronous messages to the HWND owner.
|
||||
// Service only sent messages while waiting; do not dispatch queued input,
|
||||
// timers or application callbacks into Start/Stop recursively.
|
||||
void serviceWindowMessages()
|
||||
{
|
||||
MsgWaitForMultipleObjectsEx(0, nullptr, 1, QS_SENDMESSAGE, MWMO_INPUTAVAILABLE);
|
||||
MSG message{};
|
||||
PeekMessageW(&message, nullptr, 0, 0, PM_NOREMOVE | PM_QS_SENDMESSAGE);
|
||||
}
|
||||
|
||||
std::unique_lock<std::mutex> lockWithWindowMessages(std::mutex &mutex)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex, std::defer_lock);
|
||||
while (!lock.try_lock())
|
||||
serviceWindowMessages();
|
||||
return lock;
|
||||
}
|
||||
}
|
||||
|
||||
class PreviewRenderer
|
||||
{
|
||||
public:
|
||||
@@ -28,10 +52,9 @@ public:
|
||||
|
||||
bool configure(void *hwnd)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
std::lock_guard<std::mutex> d3dLock(d3dMutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
auto d3dLock = lockWithWindowMessages(d3dMutex_);
|
||||
resetPresentStats();
|
||||
startupPresentRetries_ = 8;
|
||||
hwnd_ = hwnd;
|
||||
configured_ = hwnd_ != nullptr;
|
||||
if (configured_ && ensureDevice())
|
||||
@@ -58,7 +81,7 @@ public:
|
||||
|
||||
bool render(const gvfg_preview_frame_t &frame)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
if (!configured_ || !hwnd_ || !frame.data || frame.width <= 0 || frame.height <= 0)
|
||||
return false;
|
||||
|
||||
@@ -69,12 +92,15 @@ public:
|
||||
!ensureUploadSlotsLocked(frame.width, frame.height, frame.pixel_format))
|
||||
return false;
|
||||
|
||||
discardExpiredLocked();
|
||||
size_t pending = 0;
|
||||
for (const auto &slot : slots_)
|
||||
if (slot.state == SlotState::Pending || slot.state == SlotState::Uploading)
|
||||
++pending;
|
||||
size_t slotIndex = slots_.size();
|
||||
for (size_t i = 0; i < slots_.size(); ++i)
|
||||
if (slots_[i].state == SlotState::Free) { slotIndex = i; break; }
|
||||
if (slotIndex == slots_.size())
|
||||
for (size_t i = 0; i < slots_.size(); ++i)
|
||||
if (slots_[i].state == SlotState::Pending) { slotIndex = i; break; }
|
||||
if (pending < kMaxPendingFrames && slots_[i].state == SlotState::Free)
|
||||
{ slotIndex = i; break; }
|
||||
if (slotIndex == slots_.size())
|
||||
{
|
||||
++skippedSubmits_;
|
||||
@@ -86,13 +112,8 @@ public:
|
||||
}
|
||||
|
||||
UploadSlot &slot = slots_[slotIndex];
|
||||
if (slot.state == SlotState::Pending)
|
||||
{
|
||||
slot.commands.Reset();
|
||||
++skippedSubmits_;
|
||||
++delivery_.replaced;
|
||||
}
|
||||
slot.state = SlotState::Uploading;
|
||||
slot.generation = clearGeneration_.load(std::memory_order_acquire);
|
||||
ID3D11DeviceContext *deferred = slot.deferred.Get();
|
||||
ID3D11Texture2D *texture = slot.texture.Get();
|
||||
lock.unlock();
|
||||
@@ -124,14 +145,6 @@ public:
|
||||
}
|
||||
|
||||
lock.lock();
|
||||
for (UploadSlot &other : slots_)
|
||||
if (&other != &slot && other.state == SlotState::Pending)
|
||||
{
|
||||
other.commands.Reset();
|
||||
other.state = SlotState::Free;
|
||||
++skippedSubmits_;
|
||||
++delivery_.replaced;
|
||||
}
|
||||
++delivery_.submitted;
|
||||
slot.commands = commands;
|
||||
slot.width = frame.width;
|
||||
@@ -139,7 +152,8 @@ public:
|
||||
slot.bitDepth = sourceBitDepth;
|
||||
slot.pixelFormat = frame.pixel_format;
|
||||
slot.frameId = frame.frame_id;
|
||||
slot.generation = clearGeneration_.load(std::memory_order_acquire);
|
||||
slot.queuedAt = std::chrono::steady_clock::now();
|
||||
slot.queueOrder = ++queueOrder_;
|
||||
slot.state = SlotState::Pending;
|
||||
workerCv_.notify_one();
|
||||
return true;
|
||||
@@ -147,7 +161,7 @@ public:
|
||||
|
||||
bool prepare(int width, int height, int sourceBitDepth)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
if (!configured_ || !hwnd_ || width <= 0 || height <= 0)
|
||||
return false;
|
||||
return ensureDevice() &&
|
||||
@@ -158,7 +172,7 @@ public:
|
||||
{
|
||||
clearGeneration_.fetch_add(1, std::memory_order_acq_rel);
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
if (!configured_ || !pipeline_)
|
||||
return false;
|
||||
for (UploadSlot &slot : slots_)
|
||||
@@ -172,7 +186,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> d3dLock(d3dMutex_);
|
||||
auto d3dLock = lockWithWindowMessages(d3dMutex_);
|
||||
const bool cleared = pipeline_->clear_preview_black();
|
||||
if (cleared)
|
||||
clearActiveInfo();
|
||||
@@ -182,14 +196,18 @@ public:
|
||||
void shutdown()
|
||||
{
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
workerStopping_ = true;
|
||||
workerCv_.notify_all();
|
||||
}
|
||||
if (worker_.joinable())
|
||||
{
|
||||
while (WaitForSingleObject(worker_.native_handle(), 0) == WAIT_TIMEOUT)
|
||||
serviceWindowMessages();
|
||||
worker_.join();
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
if (pipeline_)
|
||||
pipeline_->release_preview_swapchain();
|
||||
for (UploadSlot &slot : slots_)
|
||||
@@ -245,7 +263,7 @@ public:
|
||||
|
||||
void getStats(gvfg_preview_stats_t &stats) const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
stats.presented_frames = presentedFrames_;
|
||||
stats.skipped_presents = skippedPresents_ + skippedSubmits_;
|
||||
stats.present_fps = active_.load(std::memory_order_relaxed)
|
||||
@@ -255,7 +273,7 @@ public:
|
||||
|
||||
void getDeliveryStats(gvfg_preview_delivery_stats_t &stats) const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
stats = delivery_;
|
||||
stats.in_flight = stats.submitted - stats.presented - stats.replaced -
|
||||
stats.busy - stats.failed - stats.cancelled;
|
||||
@@ -263,13 +281,25 @@ public:
|
||||
|
||||
bool waitIdle(uint32_t timeoutMs)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
return workerCv_.wait_for(lock, std::chrono::milliseconds(timeoutMs), [this] {
|
||||
for (const auto &slot : slots_)
|
||||
if (slot.state != SlotState::Free)
|
||||
return false;
|
||||
return true;
|
||||
});
|
||||
const auto deadline = std::chrono::steady_clock::now() + std::chrono::milliseconds(timeoutMs);
|
||||
for (;;)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_, std::try_to_lock);
|
||||
bool idle = lock.owns_lock();
|
||||
if (idle)
|
||||
{
|
||||
for (const auto &slot : slots_)
|
||||
if (slot.state != SlotState::Free)
|
||||
idle = false;
|
||||
}
|
||||
if (idle)
|
||||
return true;
|
||||
if (lock.owns_lock())
|
||||
lock.unlock();
|
||||
if (std::chrono::steady_clock::now() >= deadline)
|
||||
return false;
|
||||
serviceWindowMessages();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -288,8 +318,23 @@ private:
|
||||
int pixelFormat = -1;
|
||||
uint64_t frameId = 0;
|
||||
uint64_t generation = 0;
|
||||
std::chrono::steady_clock::time_point queuedAt{};
|
||||
uint64_t queueOrder = 0;
|
||||
};
|
||||
|
||||
void discardExpiredLocked()
|
||||
{
|
||||
const auto now = std::chrono::steady_clock::now();
|
||||
for (auto &slot : slots_)
|
||||
if (slot.state == SlotState::Pending && now - slot.queuedAt > kMaxQueueAge)
|
||||
{
|
||||
slot.commands.Reset();
|
||||
slot.state = SlotState::Free;
|
||||
++skippedSubmits_;
|
||||
++delivery_.replaced; // Retired queued frame: expired, not latest-frame replacement.
|
||||
}
|
||||
}
|
||||
|
||||
struct D3DState
|
||||
{
|
||||
ComPtr<ID3D11Device> device;
|
||||
@@ -478,7 +523,7 @@ private:
|
||||
? DXGI_FORMAT_R16G16B16A16_UINT
|
||||
: DXGI_FORMAT_R8G8B8A8_UINT;
|
||||
const UINT textureWidth = static_cast<UINT>((width + 1) / 2);
|
||||
std::array<UploadSlot, 3> replacement{};
|
||||
std::array<UploadSlot, kUploadSlotCount> replacement{};
|
||||
for (UploadSlot &slot : replacement)
|
||||
{
|
||||
if (FAILED(d3d_->device->CreateDeferredContext(0, &slot.deferred)))
|
||||
@@ -515,7 +560,7 @@ private:
|
||||
size_t selected = slots_.size();
|
||||
UploadSlot work;
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
workerCv_.wait(lock, [this] {
|
||||
if (workerStopping_)
|
||||
return true;
|
||||
@@ -526,77 +571,55 @@ private:
|
||||
});
|
||||
if (workerStopping_)
|
||||
break;
|
||||
discardExpiredLocked();
|
||||
for (size_t i = 0; i < slots_.size(); ++i)
|
||||
if (slots_[i].state == SlotState::Pending &&
|
||||
(selected == slots_.size() || slots_[i].frameId > slots_[selected].frameId))
|
||||
(selected == slots_.size() || slots_[i].queueOrder < slots_[selected].queueOrder))
|
||||
selected = i;
|
||||
for (size_t i = 0; i < slots_.size(); ++i)
|
||||
if (i != selected && slots_[i].state == SlotState::Pending)
|
||||
{
|
||||
slots_[i].commands.Reset();
|
||||
slots_[i].state = SlotState::Free;
|
||||
++skippedSubmits_;
|
||||
++delivery_.replaced;
|
||||
}
|
||||
if (selected == slots_.size())
|
||||
continue;
|
||||
slots_[selected].state = SlotState::Presenting;
|
||||
work = slots_[selected];
|
||||
}
|
||||
|
||||
bool ready = false;
|
||||
unsigned startupRetries = 0;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
ready = configured_ && !workerStopping_ &&
|
||||
ensurePipeline(work.width, work.height, work.bitDepth);
|
||||
if (ready)
|
||||
{
|
||||
startupRetries = startupPresentRetries_;
|
||||
startupPresentRetries_ = 0;
|
||||
}
|
||||
}
|
||||
bool rendered = false;
|
||||
bool expired = false;
|
||||
gvfg::internal::gvfg_preview_present_result_t presentResult =
|
||||
gvfg::internal::GVFG_PREVIEW_PRESENT_FAILED;
|
||||
if (ready)
|
||||
{
|
||||
std::lock_guard<std::mutex> d3dLock(d3dMutex_);
|
||||
auto d3dLock = lockWithWindowMessages(d3dMutex_);
|
||||
if (work.generation == clearGeneration_.load(std::memory_order_acquire))
|
||||
{
|
||||
d3d_->context->ExecuteCommandList(work.commands.Get(), FALSE);
|
||||
const gvfg::internal::gvfg_render_pixfmt_t renderFmt =
|
||||
work.pixelFormat == GVFG_PREVIEW_PIXFMT_Y210
|
||||
? gvfg::internal::GVFG_RENDER_FMT_Y210
|
||||
: gvfg::internal::GVFG_RENDER_FMT_YUY2;
|
||||
rendered = pipeline_->render_texture_to_fp16(work.texture.Get(), renderFmt,
|
||||
work.width, work.height, work.view.Get());
|
||||
if (rendered)
|
||||
expired = std::chrono::steady_clock::now() - work.queuedAt > kMaxQueueAge;
|
||||
if (!expired)
|
||||
{
|
||||
presentResult = pipeline_->present_preview(work.width, work.height);
|
||||
const auto retryDeadline = std::chrono::steady_clock::now() +
|
||||
std::chrono::milliseconds(16);
|
||||
// Retry the same uploaded image only on the first presentation
|
||||
// after attach. Keep normal playback non-blocking. These waits
|
||||
// run on the preview worker, never while holding an SDK frame.
|
||||
while (presentResult == gvfg::internal::GVFG_PREVIEW_PRESENT_SKIPPED &&
|
||||
startupRetries > 0 && std::chrono::steady_clock::now() < retryDeadline)
|
||||
{
|
||||
--startupRetries;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
||||
if (work.generation != clearGeneration_.load(std::memory_order_acquire))
|
||||
{
|
||||
presentResult = gvfg::internal::GVFG_PREVIEW_PRESENT_FAILED;
|
||||
break;
|
||||
}
|
||||
if (std::chrono::steady_clock::now() >= retryDeadline)
|
||||
break;
|
||||
presentResult = pipeline_->retry_preview_present();
|
||||
}
|
||||
d3d_->context->ExecuteCommandList(work.commands.Get(), FALSE);
|
||||
const gvfg::internal::gvfg_render_pixfmt_t renderFmt =
|
||||
work.pixelFormat == GVFG_PREVIEW_PIXFMT_Y210
|
||||
? gvfg::internal::GVFG_RENDER_FMT_Y210
|
||||
: gvfg::internal::GVFG_RENDER_FMT_YUY2;
|
||||
rendered = pipeline_->render_texture_to_fp16(work.texture.Get(), renderFmt,
|
||||
work.width, work.height, work.view.Get());
|
||||
if (rendered)
|
||||
presentResult = pipeline_->present_preview(work.width, work.height);
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (ready && rendered &&
|
||||
auto lock = lockWithWindowMessages(mutex_);
|
||||
if (expired)
|
||||
{
|
||||
++skippedSubmits_;
|
||||
++delivery_.replaced;
|
||||
}
|
||||
else if (ready && rendered &&
|
||||
presentResult != gvfg::internal::GVFG_PREVIEW_PRESENT_FAILED)
|
||||
{
|
||||
recordPresentResult(presentResult);
|
||||
@@ -634,7 +657,7 @@ private:
|
||||
|
||||
bool ensurePipeline(int width, int height, int sourceBitDepth)
|
||||
{
|
||||
std::lock_guard<std::mutex> d3dLock(d3dMutex_);
|
||||
auto d3dLock = lockWithWindowMessages(d3dMutex_);
|
||||
if (!pipeline_)
|
||||
pipeline_ = std::make_unique<gvfg::internal::D3DPreviewPipeline>();
|
||||
|
||||
@@ -669,8 +692,8 @@ private:
|
||||
uint64_t skippedPresents_ = 0;
|
||||
uint64_t skippedSubmits_ = 0;
|
||||
gvfg_preview_delivery_stats_t delivery_{};
|
||||
unsigned startupPresentRetries_ = 0; // Protected by mutex_; rearmed on attach.
|
||||
std::array<UploadSlot, 3> slots_{};
|
||||
uint64_t queueOrder_ = 0;
|
||||
std::array<UploadSlot, kUploadSlotCount> slots_{};
|
||||
std::thread worker_;
|
||||
std::condition_variable workerCv_;
|
||||
bool workerStarted_ = false;
|
||||
|
||||
Reference in New Issue
Block a user