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.read<
float >();
79 const std::string& name = command.read< std::string >();
80 const eq::Vector2i& area = command.read< eq::Vector2i >();
81 const std::string& formatType = command.read< std::string >();
82 const uint64_t dataSizeGPU = command.read< uint64_t >();
83 const uint64_t dataSizeCPU = command.read< 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;
virtual EQ_API uint32_t startFrame(const uint128_t &frameID)
Request a new frame of rendering.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
A command specialization for config events.
virtual EQ_API ~Config()
Destruct a config.
virtual EQ_API bool handleEvent(const ConfigEvent *event)
Handle one (old) config event.
EQ_API uint32_t getEventType() const
Returns the event type.