Browse Source

Improve Sync

buffer_cache
MaranBr 2 weeks ago
parent
commit
23b4193508
  1. 3
      src/video_core/buffer_cache/buffer_cache.h

3
src/video_core/buffer_cache/buffer_cache.h

@ -1473,6 +1473,9 @@ void BufferCache<P>::SynchronizeBufferIfNeeded(Buffer& buffer) {
bool should_download = true; bool should_download = true;
if constexpr (!IS_OPENGL) { if constexpr (!IS_OPENGL) {
should_download = buffer.getWriteTick() > runtime.KnownGpuTick(); should_download = buffer.getWriteTick() > runtime.KnownGpuTick();
if (should_download) {
runtime.Wait(buffer.getWriteTick());
}
} }
if (should_download) { if (should_download) {
DownloadBufferMemory(buffer); DownloadBufferMemory(buffer);

Loading…
Cancel
Save