Permalink
Browse files

Decimate descriptors every frame until I find a better solution. Fixe…

…s flicker in videos in several games.
  • Loading branch information...
hrydgard committed Nov 1, 2017
1 parent 980e173 commit 9e734b3791935e8796d219acc17b436a4eb20b94
Showing with 3 additions and 1 deletion.
  1. +3 −1 GPU/Vulkan/DrawEngineVulkan.cpp
@@ -57,7 +57,7 @@ enum {
};
#define VERTEXCACHE_DECIMATION_INTERVAL 17
#define DESCRIPTORSET_DECIMATION_INTERVAL 13
#define DESCRIPTORSET_DECIMATION_INTERVAL 1 // Temporarily cut to 1. Handle reuse breaks this when textures get deleted.
enum { VAI_KILL_AGE = 120, VAI_UNRELIABLE_KILL_AGE = 240, VAI_UNRELIABLE_KILL_MAX = 4 };
@@ -295,6 +295,7 @@ void DrawEngineVulkan::BeginFrame() {
// TODO : Find a better place to do this.
if (!nullTexture_) {
ILOG("INIT : Creating null texture");
VkCommandBuffer cmdInit = (VkCommandBuffer)draw_->GetNativeObject(Draw::NativeObject::INIT_COMMANDBUFFER);
nullTexture_ = new VulkanTexture(vulkan_);
int w = 8;
@@ -1087,6 +1088,7 @@ void DrawEngineVulkan::UpdateUBOs(FrameData *frame) {
void DrawEngineVulkan::TessellationDataTransferVulkan::PrepareBuffers(float *&pos, float *&tex, float *&col, int size, bool hasColor, bool hasTexCoords) {
int rowPitch;
ILOG("INIT : Prep tess");
VkCommandBuffer cmd = (VkCommandBuffer)draw_->GetNativeObject(Draw::NativeObject::INIT_COMMANDBUFFER);
// Position

0 comments on commit 9e734b3

Please sign in to comment.