Imgui per entity works

Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
AMZN-Olex
2021-07-26 21:59:19 -04:00
parent f29fd86a39
commit a2f3066fa3
13 changed files with 155 additions and 344 deletions
@@ -111,7 +111,6 @@ namespace Multiplayer
int32_t bitIndex,
TYPE& value,
const char* name,
AZ::EntityId entityId,
NetComponentId componentId,
PropertyIndex propertyIndex,
MultiplayerStats& stats
@@ -134,11 +133,11 @@ namespace Multiplayer
{
if (modifyRecord)
{
stats.RecordPropertyReceived(entityId, componentId, propertyIndex, updateSize);
stats.RecordPropertyReceived(componentId, propertyIndex, updateSize);
}
else
{
stats.RecordPropertySent(entityId, componentId, propertyIndex, updateSize);
stats.RecordPropertySent(componentId, propertyIndex, updateSize);
}
}
}
@@ -50,8 +50,9 @@ namespace Multiplayer
AZStd::vector<ComponentStats> m_componentStats;
void ReserveComponentStats(NetComponentId netComponentId, uint16_t propertyCount, uint16_t rpcCount);
void RecordEntitySerializeStart(AZ::EntityId entityId, const char* entityName);
void RecordEntitySerializeStop(AZ::EntityId entityId, const char* entityName);
void RecordEntitySerializeStart(AzNetworking::SerializerMode mode, AZ::EntityId entityId, const char* entityName);
void RecordComponentSerializeEnd(AzNetworking::SerializerMode mode, NetComponentId netComponentId);
void RecordEntitySerializeStop(AzNetworking::SerializerMode mode, AZ::EntityId entityId, const char* entityName);
void RecordPropertySent(NetComponentId netComponentId, PropertyIndex propertyId, uint32_t totalBytes);
void RecordPropertyReceived(NetComponentId netComponentId, PropertyIndex propertyId, uint32_t totalBytes);
void RecordRpcSent(NetComponentId netComponentId, RpcIndex rpcId, uint32_t totalBytes);