Fix delay on virtual GPU texture upload

This commit is contained in:
2026-08-09 07:18:21 +02:00
parent 1bcc39179f
commit fff611e7d2
6 changed files with 46 additions and 29 deletions
@@ -252,6 +252,7 @@ protected:
void OnSync() override
{
// Update residency
_newTexture->SetResidentMipLevels(_uploadedMipCount);
Swap(_streamingTexture->_texture, _newTexture);
SAFE_DELETE_GPU_RESOURCE(_newTexture);
@@ -409,6 +410,8 @@ protected:
dataSource += dataPerSlice;
}
UpdateResidency(texture);
return Result::Ok;
}