Permalink
Browse files

Add and update some comments.

  • Loading branch information...
hrydgard committed Oct 31, 2017
1 parent 74861d2 commit 330bdb8be8a1eb5e490f7bc77345892d99745200
Showing with 9 additions and 4 deletions.
  1. +2 −0 Common/Vulkan/VulkanContext.h
  2. +1 −0 Common/Vulkan/VulkanImage.h
  3. +4 −1 Core/Core.vcxproj
  4. +2 −3 GPU/D3D11/TextureCacheD3D11.cpp
@@ -306,6 +306,8 @@ class VulkanContext {
return swapchainFormat_;
}
// 1 for no frame overlap and thus minimal latency but worst performance.
// 2 is an OK compromise, while 3 performs best but risks slightly higher latency.
enum {
MAX_INFLIGHT_FRAMES = 3,
};
@@ -35,6 +35,7 @@ class VulkanTexture {
void UploadMip(VkCommandBuffer cmd, int mip, int mipWidth, int mipHeight, VkBuffer buffer, uint32_t offset, size_t rowLength); // rowLength is in pixels
void EndCreate(VkCommandBuffer cmd);
// Dangerous.
void TransitionForUpload(VkCommandBuffer cmd);
int GetNumMips() const { return numMips_; }
View
@@ -236,7 +236,10 @@
<ClCompile Include="FileSystems\VirtualDiscFileSystem.cpp" />
<ClCompile Include="Font\PGF.cpp" />
<ClCompile Include="HDRemaster.cpp" />
<ClCompile Include="HLE\HLE.cpp" />
<ClCompile Include="HLE\HLE.cpp">
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">MaxSpeed</Optimization>
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Default</BasicRuntimeChecks>
</ClCompile>
<ClCompile Include="HLE\HLEHelperThread.cpp" />
<ClCompile Include="HLE\HLETables.cpp" />
<ClCompile Include="HLE\proAdhoc.cpp" />
@@ -514,9 +514,6 @@ void TextureCacheD3D11::BuildTexture(TexCacheEntry *const entry, bool replaceIma
}
}
// If GLES3 is available, we can preallocate the storage, which makes texture loading more efficient.
DXGI_FORMAT dstFmt = GetDestFormat(GETextureFormat(entry->format), gstate.getClutPaletteFormat());
int scaleFactor = standardScaleFactor_;
// Rachet down scale factor in low-memory mode.
@@ -573,6 +570,8 @@ void TextureCacheD3D11::BuildTexture(TexCacheEntry *const entry, bool replaceIma
maxLevel = 0;
}
DXGI_FORMAT dstFmt = GetDestFormat(GETextureFormat(entry->format), gstate.getClutPaletteFormat());
if (IsFakeMipmapChange()) {
// NOTE: Since the level is not part of the cache key, we assume it never changes.
u8 level = std::max(0, gstate.getTexLevelOffset16() / 16);

0 comments on commit 330bdb8

Please sign in to comment.