Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Dec 5, 2023
1 parent 872a8c5 commit 36a2618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,8 @@ namespace Ogre
// - Whether 2 is faster than 3 or viceversa may be HW specific. For example Intel only
// exposes Cached + Coherent and nothing else. It seems they have no performance problems
// at all.
//
// This assumes CPU write-combining is fast. If it's not, then this is wrong.
const uint32 idx = mBestVkMemoryTypeIndex[CPU_WRITE_PERSISTENT_COHERENT].back();
// Prefer coherent memory if it's uncached, or if we have no choice.
if( !mSupportsNonCoherentMemory ||
Expand Down

0 comments on commit 36a2618

Please sign in to comment.