[client/host/idd/obs] scheduler: validate phase feedback

Bump KVMFR to version 28 and attach generation, epoch, and deadline
identities to cadence deliveries and their timing records.

Accept phase corrections only for the exact completed publication. Keep
VM and client clocks independent by exchanging relative phase errors.

Make submission, completion, and work-estimate accounting best effort
so scheduler state cannot delay GPU submission or frame publication.
This commit is contained in:
Geoffrey McRae
2026-08-06 16:05:05 +10:00
parent 983cf588e3
commit 515f4ba06f
16 changed files with 688 additions and 235 deletions

View File

@@ -26,6 +26,8 @@
#include <d3d12.h>
#include <stdint.h>
#include "CFrameScheduler.h"
class CSwapChainProcessor;
using namespace Microsoft::WRL;
@@ -33,19 +35,22 @@ using namespace Microsoft::WRL;
class CFrameBufferResource
{
private:
unsigned m_frameIndex = 0;
uint8_t * m_base = nullptr;
size_t m_size = 0;
size_t m_frameSize = 0;
uint64_t m_captureTime = 0;
uint64_t m_postProcessStart = 0;
uint64_t m_copyStart = 0;
unsigned m_timingEffectIndex = 0;
uint64_t m_timingToken = 0;
bool m_fullCopy = false;
unsigned m_candidateIndex = 0;
ComPtr<ID3D12Resource> m_res;
void * m_map = nullptr;
unsigned m_frameIndex = 0;
uint8_t * m_base = nullptr;
size_t m_size = 0;
size_t m_frameSize = 0;
uint64_t m_captureTime = 0;
uint64_t m_postProcessStart = 0;
uint64_t m_copyStart = 0;
CFrameScheduler::Schedule m_schedule = {};
unsigned m_timingEffectIndex = 0;
uint64_t m_timingToken = 0;
bool m_fullCopy = false;
unsigned m_candidateIndex = 0;
ComPtr<ID3D12Resource> m_res;
void * m_map = nullptr;
public:
bool Init(CSwapChainProcessor * swapChain, unsigned frameIndex, uint8_t * base, size_t size);
@@ -65,6 +70,14 @@ class CFrameBufferResource
uint64_t GetCaptureTime () const { return m_captureTime; }
uint64_t GetPostProcessStart() const { return m_postProcessStart; }
uint64_t GetCopyStart () const { return m_copyStart; }
void SetSchedule(const CFrameScheduler::Schedule& schedule)
{
m_schedule = schedule;
}
const CFrameScheduler::Schedule& GetSchedule() const
{
return m_schedule;
}
void SetPostProcessSample(
unsigned effectIndex, uint64_t token, bool fullCopy)