/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */ #ifndef SE_INCL_WORLDEDITINGPROFILE_H #define SE_INCL_WORLDEDITINGPROFILE_H #ifdef PRAGMA_ONCE #pragma once #endif #include /* Class for holding profiling information for world editing operations. */ class CWorldEditingProfile : public CProfileForm { public: // indices for profiling counters and timers enum ProfileTimerIndex { PTI_CSGTOTAL, // total time spent for CSG operations PTI_OBJECTOPTIMIZE, // time spent in CObject3D::Optimize() PTI_OBJECTCSG, // time spent in CObject3D::CSGxxxx() PTI_ADDOBJECTTOBRUSH, // AddObjectToBrush() PTI_FINDSHADOWLAYERS, // FindShadowLayers() PTI_CALCULATEBOUNDINGBOXES, // CalculateBoundingBoxes() PTI_ADDFROMOBJECT3D, // AddFromObject3D() PTI_TRIANGULATE, PTI_TRISTRIPMODELS, PTI_DUMMY1, PTI_LINKENTITIESTOSECTORS, // LinkEntititesToSectors() PTI_LINKPORTALSANDSECTORS, // LinkPortalsAndSectors() PTI_READBRUSHES, // ReadBrushes() PTI_READBSP, // ReadBSP() PTI_READPORTALSECTORLINKS, // ReadPortalSectorLinks() PTI_READSTATE, // ReadState() PTI_REINITIALIZEENTITIES, PTI_DUMMY2, PTI_MAKESHADOWMAP, // MakeShadowMap() PTI_RENDERSHADOWS, // RenderShadows() PTI_DUMMY3, PTI_MIXLAYERS, // CLayerMixer::MixLayers() PTI_CALCULATEDATA, // CLayerMixer::CalculateData() PTI_AMBIENTFILL, // CLayerMixer::FillWithAmbientLight() PTI_ADDONELAYERPOINT, // CLayerMixer::AddOneLayerPoint() PTI_ADDONELAYERDIRECTIONAL, // CLayerMixer::AddOneLayerDirectional() PTI_COUNT }; enum ProfileCounterIndex { PCI_SECTORSOPTIMIZED, // total number of sectors optimized PCI_SHADOWIMAGES, // number of shadow images generated PCI_SHADOWCLUSTERS, // total number of shadow clusters generated in all images PCI_POLYGONSHADOWS, // total number of polygon shadows cast PCI_COUNT }; // constructor CWorldEditingProfile(void); }; #endif /* include-once check. */