31 #include "configEvent.h"
34 namespace eqPixelBench
37 : eq::Config( parent )
51 _clock =
new lunchbox::Clock;
68 std::cout <<
"readback";
71 std::cout <<
"assemble";
78 const float msec = command.get<
float >();
79 const std::string& name = command.get< std::string >();
80 const eq::Vector2i area = command.get< eq::Vector2i >();
81 const std::string& formatType = command.get< std::string >();
82 const uint64_t dataSizeGPU = command.get< uint64_t >();
83 const uint64_t dataSizeCPU = command.get< uint64_t >();
85 std::cout <<
" \"" << name <<
"\" " << formatType
86 << std::string( 32-formatType.length(),
' ' ) << area.x()
87 <<
"x" << area.y() <<
": ";
90 std::cout <<
"error 0x" << std::hex << static_cast< int >( -msec )
93 std::cout << static_cast< uint32_t >( area.x() * area.y() /
95 <<
"MPix/sec (" << msec <<
"ms, "
96 <<
unsigned(1000.0f / msec) <<
"FPS)";
100 std::cout << area <<
"( size GPU : " << dataSizeGPU <<
" bytes ";
101 std::cout <<
"/ size CPU : " << dataSizeCPU <<
" bytes ";
102 std::cout <<
"/ time : " << msec <<
"ms )";
106 std::cout << area <<
"( size CPU : " << dataSizeCPU <<
" bytes ";
107 std::cout <<
"/ time : " << msec <<
"ms )";
110 std::cout << std::endl;
A command specialization for config events.
uint32_t getEventType() const
Returns the event type.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
virtual bool handleEvent(const ConfigEvent *event)
Handle one (old) config event.
virtual uint32_t startFrame(const uint128_t &frameID)
Request a new frame of rendering.
virtual ~Config()
Destruct a config.