Improve Sync

This commit is contained in:
MaranBr
2026-07-19 23:31:44 -04:00
committed by crueter
parent 0a2315c5dc
commit 26c1317d02
@@ -1473,6 +1473,9 @@ void BufferCache<P>::SynchronizeBufferIfNeeded(Buffer& buffer) {
bool should_download = true;
if constexpr (!IS_OPENGL) {
should_download = buffer.getWriteTick() > runtime.KnownGpuTick();
if (should_download) {
runtime.Wait(buffer.getWriteTick());
}
}
if (should_download) {
DownloadBufferMemory(buffer);