[idd] remove debounce logic now the lifecycle is properly protected

This commit is contained in:
Geoffrey McRae
2026-07-18 04:41:38 +10:00
parent 87db473122
commit b48f8d6fec
2 changed files with 2 additions and 72 deletions

View File

@@ -159,15 +159,6 @@ private:
CSettings::DisplayMode m_setMode = {};
bool m_doSetMode = false;
// Debounce for resolution changes. A window resize streams many WINDOWSIZE
// requests in quick succession; rather than replug the monitor for each, we
// (re)start a timer and only apply the last requested resolution once it has
// remained unchanged for m_resChangeDelayMs. Guarded by m_stateLock.
static const ULONG m_resChangeDelayMs = 1000;
WDFTIMER m_resChangeTimer = nullptr;
CSettings::DisplayMode m_pendingMode = {};
bool m_resChangePending = false;
// Set by ReplugMonitor after a departure to rebuild the monitor from the LGMP
// timer, off the IddCx callback thread.
volatile LONG m_finishInitQueued = 0;
@@ -206,7 +197,6 @@ public:
#endif
void SetResolution(int width, int height);
void ApplyResolution();
size_t GetAlignSize () const { return m_alignSize ; }
size_t GetMaxFrameSize() const { return m_maxFrameSize ; }