Răsfoiți Sursa

Replace FixedMaxPath with Path in SourceAssetReference

Profiling showed FixedMaxPath was resulting in high memory usage in as part of QueueElementID in RCController's Cached Job list

Signed-off-by: amzn-mike <[email protected]>
amzn-mike 2 ani în urmă
părinte
comite
b6a2c4a1ba

+ 3 - 3
Code/Tools/AssetProcessor/native/AssetManager/SourceAssetReference.cpp

@@ -152,17 +152,17 @@ namespace AssetProcessor
 
     AZ::IO::FixedMaxPath SourceAssetReference::AbsolutePath() const
     {
-        return m_absolutePath;
+        return AZ::IO::FixedMaxPath(m_absolutePath);
     }
 
     AZ::IO::FixedMaxPath SourceAssetReference::RelativePath() const
     {
-        return m_relativePath;
+        return AZ::IO::FixedMaxPath(m_relativePath);
     }
 
     AZ::IO::FixedMaxPath SourceAssetReference::ScanFolderPath() const
     {
-        return m_scanFolderPath;
+        return AZ::IO::FixedMaxPath(m_scanFolderPath);
     }
 
     AZ::s64 SourceAssetReference::ScanFolderId() const

+ 3 - 3
Code/Tools/AssetProcessor/native/AssetManager/SourceAssetReference.h

@@ -74,9 +74,9 @@ namespace AssetProcessor
     private:
         void Normalize();
 
-        AZ::IO::FixedMaxPath m_absolutePath;
-        AZ::IO::FixedMaxPath m_relativePath;
-        AZ::IO::FixedMaxPath m_scanFolderPath;
+        AZ::IO::Path m_absolutePath;
+        AZ::IO::Path m_relativePath;
+        AZ::IO::Path m_scanFolderPath;
         AZ::s64 m_scanFolderId{};
     };
 }