diff --git a/GPU/GPUCommon.h b/GPU/GPUCommon.h index 43ae9a553..85ccefacb 100644 --- a/GPU/GPUCommon.h +++ b/GPU/GPUCommon.h @@ -8,7 +8,6 @@ #include #elif defined(_M_SSE) #include -#pragma warning(disable:4799) #endif typedef ThreadEventQueue GPUThreadEventQueue; @@ -49,7 +48,9 @@ public: return curTickEst_; #elif defined(_M_SSE) __m64 result = *(__m64 *)&curTickEst_; - return *(u64 *)&result; + u64 safeResult = *(u64 *)&result; + _mm_empty(); + return safeResult; #else lock_guard guard(curTickEstLock_); return curTickEst_; @@ -120,6 +121,7 @@ protected: #elif defined(_M_SSE) __m64 result = *(__m64 *)&value; *(__m64 *)&curTickEst_ = result; + _mm_empty(); #else lock_guard guard(curTickEstLock_); curTickEst_ = value;