Emergency 20 Dokumentation  4.2.0
Ogre::GpuCommandBufferFlush Class Reference

Helper class which can assist you in making sure the -GPU command buffer is regularly flushed, so in cases where the -CPU is outpacing the GPU we do not hit a situation where the -CPU suddenly has to stall to wait for more space in the buffer. More...

#include <GpuCommandBufferFlush.h>

Inheritance diagram for Ogre::GpuCommandBufferFlush:

Public Member Functions

 GpuCommandBufferFlush ()
 
virtual ~GpuCommandBufferFlush ()
 
void start (size_t maxQueuedFrames=2)
 
void stop ()
 
bool frameStarted (const FrameEvent &evt) override
 
bool frameEnded (const FrameEvent &evt) override
 
virtual void eventOccurred (const Ogre::String &eventName, const Ogre::NameValuePairList *parameters=nullptr) override
 

Protected Types

typedef std::vector< HardwareOcclusionQuery * > HOQList
 

Protected Attributes

bool mUseOcclusionQuery
 
HOQList mHOQList
 
size_t mMaxQueuedFrames
 
size_t mCurrentFrame
 
bool mStartPull
 
bool mStarted
 
bool mDeviceLostSinceFrameStarted
 

Detailed Description

Helper class which can assist you in making sure the -GPU command buffer is regularly flushed, so in cases where the -CPU is outpacing the GPU we do not hit a situation where the -CPU suddenly has to stall to wait for more space in the buffer.

See also

Member Typedef Documentation

typedef std::vector<HardwareOcclusionQuery*> Ogre::GpuCommandBufferFlush::HOQList
protected

Constructor & Destructor Documentation

Ogre::GpuCommandBufferFlush::GpuCommandBufferFlush ( )
virtual Ogre::GpuCommandBufferFlush::~GpuCommandBufferFlush ( )
virtual

Member Function Documentation

virtual void Ogre::GpuCommandBufferFlush::eventOccurred ( const Ogre::String &  eventName,
const Ogre::NameValuePairList *  parameters = nullptr 
)
overridevirtual
bool Ogre::GpuCommandBufferFlush::frameEnded ( const FrameEvent &  evt)
override
bool Ogre::GpuCommandBufferFlush::frameStarted ( const FrameEvent &  evt)
override
void Ogre::GpuCommandBufferFlush::start ( size_t  maxQueuedFrames = 2)
void Ogre::GpuCommandBufferFlush::stop ( )

Member Data Documentation

size_t Ogre::GpuCommandBufferFlush::mCurrentFrame
protected
bool Ogre::GpuCommandBufferFlush::mDeviceLostSinceFrameStarted
protected
HOQList Ogre::GpuCommandBufferFlush::mHOQList
protected
size_t Ogre::GpuCommandBufferFlush::mMaxQueuedFrames
protected
bool Ogre::GpuCommandBufferFlush::mStarted
protected
bool Ogre::GpuCommandBufferFlush::mStartPull
protected
bool Ogre::GpuCommandBufferFlush::mUseOcclusionQuery
protected

The documentation for this class was generated from the following file: