Skip to content

Commit 4319dbb

Browse files
committed
Disabled some log spam sources
1 parent 0d30a0b commit 4319dbb

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

OptiScaler/hooks/VulkanwDx12/CommandBuffer_StateTracker.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
namespace vk_state
1818
{
19-
static constexpr uint32_t kMaxDescriptorSets =
20-
32; // Increased from 8 to support more pipelines (Vulkan spec minimum is 4, typical is 32)
19+
static constexpr uint32_t kMaxDescriptorSets = 32;
2120
static constexpr uint32_t kMaxViewports = 16;
2221
static constexpr uint32_t kMaxScissors = 16;
2322
static constexpr uint32_t kMaxVertexBuffers = 32; // Standard limit is often 32
@@ -234,7 +233,7 @@ class CommandBufferStateTracker
234233
if (_poolEpochs.find(pool) == _poolEpochs.end())
235234
{
236235
_poolEpochs[pool] = _globalEpochCounter;
237-
LOG_DEBUG("Pool {:X} initialized with epoch {}", (size_t) pool, _globalEpochCounter);
236+
// LOG_DEBUG("Pool {:X} initialized with epoch {}", (size_t) pool, _globalEpochCounter);
238237
}
239238

240239
// Map each command buffer to its pool
@@ -243,8 +242,8 @@ class CommandBufferStateTracker
243242
_cmdBufferToPool[pCommandBuffers[i]] = pool;
244243
}
245244

246-
LOG_DEBUG("Allocated {} command buffers from pool {:X} (current pool epoch: {})", count, (size_t) pool,
247-
_poolEpochs[pool]);
245+
// LOG_DEBUG("Allocated {} command buffers from pool {:X} (current pool epoch: {})", count, (size_t) pool,
246+
// _poolEpochs[pool]);
248247
}
249248

250249
void OnBegin(VkCommandBuffer cmd, const VkCommandBufferBeginInfo* pBeginInfo)
@@ -322,9 +321,9 @@ class CommandBufferStateTracker
322321
_globalEpochCounter++;
323322
_poolEpochs[pool] = _globalEpochCounter;
324323

325-
LOG_DEBUG("Pool {:X} reset - pool epoch set to {} - command buffers from THIS POOL invalidated until next "
326-
"vkBeginCommandBuffer",
327-
(size_t) pool, _globalEpochCounter);
324+
// LOG_DEBUG("Pool {:X} reset - pool epoch set to {} - command buffers from THIS POOL invalidated until next "
325+
// "vkBeginCommandBuffer",
326+
// (size_t) pool, _globalEpochCounter);
328327
}
329328

330329
void OnBindPipeline(VkCommandBuffer cmd, VkPipelineBindPoint bindPoint, VkPipeline pipeline)

OptiScaler/hooks/VulkanwDx12/VulkanwDx12_Hooks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5983,8 +5983,10 @@ void Vulkan_wDx12::hk_vkCmdDrawMeshTasksIndirectCountEXT(VkCommandBuffer command
59835983
void Vulkan_wDx12::hk_vkCmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount,
59845984
const VkCommandBuffer* pCommandBuffers)
59855985
{
5986+
#ifdef LOG_ALL_RECORDS
59865987
LOG_DEBUG("commandBuffer: {:X}, commandBufferCount: {}, pCommandBuffers: {:X}", (size_t) commandBuffer,
59875988
commandBufferCount, (size_t) pCommandBuffers);
5989+
#endif
59885990

59895991
VkCommandBuffer cmdBuffer = commandBuffer;
59905992

@@ -6008,7 +6010,9 @@ VkResult Vulkan_wDx12::hk_vkQueueSubmit(VkQueue queue, uint32_t submitCount, VkS
60086010
return VK_ERROR_INITIALIZATION_FAILED;
60096011
}
60106012

6013+
#ifdef LOG_ALL_RECORDS
60116014
LOG_DEBUG("queue: {:X}, submitCount: {}, fence: {:X}", (size_t) queue, submitCount, (size_t) fence);
6015+
#endif
60126016

60136017
// for (size_t a = 0; a < submitCount; a++)
60146018
//{

0 commit comments

Comments
 (0)