Deprecate profiler categories based on global enum
(to be supplanted by registered budgets in the future) Signed-off-by: Jeremy Ong <jcong@amazon.com>
This commit is contained in:
@@ -169,7 +169,7 @@ namespace Vegetation
|
||||
|
||||
DescriptorPtr InstanceSystemComponent::RegisterUniqueDescriptor(const Descriptor& descriptor)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_uniqueDescriptorsMutex)> lock(m_uniqueDescriptorsMutex);
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::ReleaseUniqueDescriptor(DescriptorPtr descriptorPtr)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_uniqueDescriptorsMutex)> lock(m_uniqueDescriptorsMutex);
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::CreateInstance(InstanceData& instanceData)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
if (!IsDescriptorValid(instanceData.m_descriptorPtr))
|
||||
{
|
||||
@@ -299,7 +299,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::DestroyInstance(InstanceId instanceId)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
if (instanceId == InvalidInstanceId)
|
||||
{
|
||||
@@ -439,7 +439,7 @@ namespace Vegetation
|
||||
|
||||
bool InstanceSystemComponent::IsInstanceSkippable(const InstanceData& instanceData) const
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
//if the instance was queued for deletion before its creation task executed then skip it
|
||||
AZStd::lock_guard<decltype(m_instanceDeletionSetMutex)> instanceDeletionSet(m_instanceDeletionSetMutex);
|
||||
@@ -448,7 +448,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::CreateInstanceNode(const InstanceData& instanceData)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
if (IsInstanceSkippable(instanceData))
|
||||
{
|
||||
@@ -489,7 +489,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::ReleaseInstanceNode(InstanceId instanceId)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
DescriptorPtr descriptor = nullptr;
|
||||
InstancePtr opaqueInstanceData = nullptr;
|
||||
@@ -521,7 +521,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::AddTask(const Task& task)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_mainThreadTaskMutex)> mainThreadTaskLock(m_mainThreadTaskMutex);
|
||||
if (m_mainThreadTaskQueue.empty() || m_mainThreadTaskQueue.back().size() >= m_configuration.m_maxInstanceTaskBatchSize)
|
||||
@@ -534,7 +534,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::ClearTasks()
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_mainThreadTaskInProgressMutex)> mainThreadTaskInProgressLock(m_mainThreadTaskInProgressMutex);
|
||||
AZStd::lock_guard<decltype(m_mainThreadTaskMutex)> mainThreadTaskLock(m_mainThreadTaskMutex);
|
||||
@@ -546,7 +546,7 @@ namespace Vegetation
|
||||
|
||||
bool InstanceSystemComponent::GetTasks(TaskList& removedTasks)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_mainThreadTaskMutex)> mainThreadTaskLock(m_mainThreadTaskMutex);
|
||||
if (!m_mainThreadTaskQueue.empty())
|
||||
@@ -559,7 +559,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::ExecuteTasks()
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZStd::lock_guard<decltype(m_mainThreadTaskInProgressMutex)> scopedLock(m_mainThreadTaskInProgressMutex);
|
||||
|
||||
@@ -588,7 +588,7 @@ namespace Vegetation
|
||||
|
||||
void InstanceSystemComponent::ProcessMainThreadTasks()
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Entity);
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
ExecuteTasks();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user