gwnavgeneration/generator/generatorsectorreport.h Source File

generatorsectorreport.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 #pragma once
9 
11 
12 namespace Kaim
13 {
14 
15 
20 {
21  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
22 public:
25  m_doLogDetails(false),
26  m_isPatch(false),
27  m_clientInputLoaded(false),
28  m_sectorInputProduced(false),
29  m_navDataGenerated(false),
31  m_colDataGenerated(false),
43  m_coldataSizeInBytes(0),
46  {
47  m_logPrefix = " ";
48  }
49 
50  bool SomethingHappenedForThisSector() const
51  {
52  return m_clientInputLoaded == true
53  || m_sectorInputProduced == true
54  || m_navDataGenerated == true
55  || m_navDataPatchGenerated == true;
56  }
57 
58 public:
59  mutable bool m_doLogDetails;
60  String m_logPrefix;
61 
62  String m_sectorName;
63  KyGuid m_guid;
64  bool m_isPatch;
65 
71 
72  String m_loadedClientInputAbsoluteFileName; // != "" if .ClientInput was loaded from the hard drive
73  String m_savedClientInputAbsoluteFileName; // != "" if .ClientInput was saved to the hard drive
74  String m_savedNavDataAbsoluteFileName; // != "" if .NavData was saved to the hard drive
75  String m_savedNavDataPatchAbsoluteFileName; // != "" if .Patch.X.NavData was saved to the hard drive
76  String m_savedColDataAbsoluteFileName; // != "" if .ColData was saved to the hard drive
77 
81 
86 
90 
93  KyUInt32 m_coldataSizeInBytes;
94 
97 };
98 
99 }
100 
101 
102 
KyFloat32 m_sectorLoadInputTileTime
Maintains the time taken to load the InputTile for the sector.
Definition: generatorsectorreport.h:89
bool m_colDataGenerated
Indicates if the ColData was generated for this sector.
Definition: generatorsectorreport.h:70
KyFloat32 m_sectorRawNavMeshTime
Maintains the time taken to generate the NavData for the sector. This includes m_sectorLoadInputTileT...
Definition: generatorsectorreport.h:88
KyUInt32 m_generatedMainNavCellsCount
Maintains the total number of unique cells in the NavMesh generated for the sector: i...
Definition: generatorsectorreport.h:83
KyUInt32 m_generatedTotalNavCellsCount
Maintains the total number of cells in the NavMesh generated for the sector.
Definition: generatorsectorreport.h:82
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
bool m_clientInputLoaded
Indicates if the client input loaded for this sector.
Definition: generatorsectorreport.h:66
KyUInt32 m_totalNavmeshSizeInBytes
Maintains the size of the NavMeshElement generated for the sector.
Definition: generatorsectorreport.h:95
GeneratorSectorReport()
For internal use: constructs a new SectorStatistic.
Definition: generatorsectorreport.h:24
Box3f m_inputBoundingBox
Maintains the bounding box around the input geometry of the sector.
Definition: generatorsectorreport.h:80
KyUInt32 m_overlapDataSizeInBytes
Maintains the size of the overlap data generated for the sector: the NavData that overlaps the NavDat...
Definition: generatorsectorreport.h:96
KyUInt32 m_generatedOverlapNavCellsCount
Maintains the total number of overlap cells in the NavMesh generated for the sector: i...
Definition: generatorsectorreport.h:84
The SectorStatistics class encapsulates a detailed set of statistics about a single sector treated by...
Definition: generatorsectorreport.h:19
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
3d axis aligned box of 32bits floating points
Definition: box3f.h:16
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
bool m_navDataGenerated
Indicates if the NavData was generated for this sector.
Definition: generatorsectorreport.h:68
KyUInt32 m_consumedTriangleCount
Maintains the number of input triangles consumed in the input geometry of the sector.
Definition: generatorsectorreport.h:79
KyUInt32 m_navDataSizeInBytes
Maintains the total size of the NavData generated for the sector.
Definition: generatorsectorreport.h:91
bool m_sectorInputProduced
Indicates if the InputProducer was called for this sector.
Definition: generatorsectorreport.h:67
KyUInt32 m_navDataPatchSizeInBytes
Maintains the total size of the NavData generated for the sector.
Definition: generatorsectorreport.h:92
KyUInt32 m_inputCellsCount
Maintains the number of input cells created internally for the input geometry of the sector...
Definition: generatorsectorreport.h:78
KyUInt32 m_navdataElementsCount
Maintains the total number of NavData elements in the sector: i.e. the number of data chunks that are...
Definition: generatorsectorreport.h:85
bool m_navDataPatchGenerated
Indicates if the Patch.X.NavData was generated for this sector.
Definition: generatorsectorreport.h:69
float KyFloat32
float
Definition: types.h:32
KyFloat32 m_sectorInputConsumptionDuration
Maintains the time taken to consume the input geometry for the sector.
Definition: generatorsectorreport.h:87