CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TPerfProfile

Unit

Cast2

Declaration

type TPerfProfile = class

Description

Engine performance profile data

Fields

 NameDescription
PublicBuffersProfileVertex/index buffers performace profile
PublicClearCallsNumber of clear calls during rendering a frame
PublicDrawCallsNumber of draw calls (DrawIndexedPrimitive etc) in current frame
PublicFrustumCulledItemsNumber of items culled out with frustum culling in current frame
PublicFrustumPassedItemsNumber of items passed frustum culling (and probably actually drawn) in current frame
PublicPrimitivesRenderedNumber of primitives (triangles) rendered in current frame
PublicRenderTargetChangesNumber of render target changes during rendering a frame
PublicSortedItemsNumber of sorted items in current frame
PublicTimes 

Methods

Overview

Publicprocedure BeginTiming(Timer: TTimer; PerfTimer: TPerfTimer);
Publicfunction EndTiming(Timer: TTimer; PerfTimer: TPerfTimer): TTimeUnit;
Publicprocedure OnBuffersReset;
Publicprocedure OnFrameStart;

Description

Publicprocedure BeginTiming(Timer: TTimer; PerfTimer: TPerfTimer);

Starts timing of the specified performance timer using the specified timer class

Publicfunction EndTiming(Timer: TTimer; PerfTimer: TPerfTimer): TTimeUnit;

Stops timing and returns the specified performance timer value using the specified timer class

Publicprocedure OnBuffersReset;

Sets values which should be resetted at render buffers reset

Publicprocedure OnFrameStart;

Sets values which should be zeroed-out at frame render start

Properties

Overview

Publicproperty FramesPerSecond: Single;
Publicproperty MaxFramesPerSecond: Single;
Publicproperty MinFramesPerSecond: Single;
Publicproperty PrimitivesPerSecond: Single;

Description

Publicproperty FramesPerSecond: Single;

Frame rate averaged through some time

Publicproperty MaxFramesPerSecond: Single;

Maximal averaged frame rate

Publicproperty MinFramesPerSecond: Single;

Minimal averaged frame rate

Publicproperty PrimitivesPerSecond: Single;

Number of primitives per second

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com