Removed chatty profile markers. (#6556)

* Removed chatty profile markers.
These 4 markers removed tens of thousands of events, which reduced an example capture from 1685 ms to 1614 ms and made it far more readable.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>

* Restored one marker

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
This commit is contained in:
Mike Balfour
2021-12-23 11:53:17 -06:00
committed by GitHub
parent 227eea2cf6
commit 17f928cddd
3 changed files with 0 additions and 5 deletions
@@ -100,7 +100,6 @@ namespace AZ
template <class Traits>
typename MemorySubAllocator<Traits>::memory_allocation MemorySubAllocator<Traits>::Allocate(size_t sizeInBytes, size_t alignmentInBytes)
{
AZ_PROFILE_FUNCTION(RHI);
if (RHI::AlignUp(sizeInBytes, alignmentInBytes) > m_descriptor.m_capacityInBytes)
{
return memory_allocation();
@@ -57,8 +57,6 @@ namespace AZ
CpuVirtualAddress MemoryView::Map(RHI::HostMemoryAccess hostAccess) const
{
AZ_PROFILE_FUNCTION(RHI);
CpuVirtualAddress cpuAddress = nullptr;
D3D12_RANGE readRange = {};
if (hostAccess == RHI::HostMemoryAccess::Read)
@@ -74,8 +74,6 @@ namespace AZ
RHI::ResultCode ShaderResourceGroup::Init(ShaderAsset& shaderAsset, const SupervariantIndex& supervariantIndex, const AZ::Name& srgName)
{
AZ_PROFILE_FUNCTION(RPI);
const auto& lay = shaderAsset.FindShaderResourceGroupLayout(srgName, supervariantIndex);
m_layout = lay.get();