diff options
| author | Stenzek <stenzek@gmail.com> | 2017-03-04 16:42:31 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-03-04 16:53:12 +1000 |
| commit | 811eafda576dd38a4bbff779d078762dbb3bd8b4 (patch) | |
| tree | 10175c1f2398023197b38ff7f8ccede2bec3a465 /Source/Core/VideoCommon/RenderBase.h | |
| parent | 00a0a91513fbb52362fc7d3a7db6450d66c4c68a (diff) | |
VideoCommon: Store last window request width/height
This avoids the need to send a window resize event every frame.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h index 3afa8761d4..a8323c27a2 100644 --- a/Source/Core/VideoCommon/RenderBase.h +++ b/Source/Core/VideoCommon/RenderBase.h @@ -192,6 +192,10 @@ private: unsigned int m_efb_scale_denominatorX = 1; unsigned int m_efb_scale_denominatorY = 1; + // These will be set on the first call to SetWindowSize. + int m_last_window_request_width = 0; + int m_last_window_request_height = 0; + // frame dumping std::thread m_frame_dump_thread; Common::Event m_frame_dump_start; |
