Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove timing info from WriteState #1849

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions framework/encode/vulkan_state_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ uint64_t VulkanStateWriter::WriteState(const VulkanStateTable& state_table, uint
// clang-format off
blocks_written_ = 0;

auto started = std::chrono::high_resolution_clock::now();

format::Marker marker;
marker.header.size = sizeof(marker.marker_type) + sizeof(marker.frame_number);
marker.header.type = format::kStateMarkerBlock;
Expand Down Expand Up @@ -226,13 +224,6 @@ uint64_t VulkanStateWriter::WriteState(const VulkanStateTable& state_table, uint
// For the EndMarker meta command
++blocks_written_;

auto done = std::chrono::high_resolution_clock::now();
uint32_t time = std::chrono::duration_cast<std::chrono::milliseconds>(done - started).count();
GFXRECON_LOG_INFO("--------------------------------------")
GFXRECON_LOG_INFO("%s()", __func__)
GFXRECON_LOG_INFO(" saved in %u ms", time);
GFXRECON_LOG_INFO("--------------------------------------")

return blocks_written_;
// clang-format on
}
Expand Down Expand Up @@ -2901,8 +2892,6 @@ void VulkanStateWriter::WriteResourceMemoryState(const VulkanStateTable& state_t
VkDeviceSize max_resource_size = 0;
VkDeviceSize max_staging_copy_size = 0;

auto started = std::chrono::high_resolution_clock::now();

WriteBufferMemoryState(state_table, &resources, &max_resource_size, &max_staging_copy_size, write_memory_state);
WriteImageMemoryState(state_table, &resources, &max_resource_size, &max_staging_copy_size, write_memory_state);

Expand Down Expand Up @@ -2976,14 +2965,6 @@ void VulkanStateWriter::WriteResourceMemoryState(const VulkanStateTable& state_t
GFXRECON_LOG_ERROR("Failed to create a staging buffer to process trim state");
}
}

auto done = std::chrono::high_resolution_clock::now();
uint32_t time = std::chrono::duration_cast<std::chrono::milliseconds>(done - started).count();

GFXRECON_LOG_INFO("--------------------------------------")
GFXRECON_LOG_INFO("%s()", __func__)
GFXRECON_LOG_INFO(" saved in %u ms", time);
GFXRECON_LOG_INFO("--------------------------------------")
}

void VulkanStateWriter::WriteMappedMemoryState(const VulkanStateTable& state_table)
Expand Down
Loading