| 293 | } |
| 294 | |
| 295 | void printMemoryStats() |
| 296 | { |
| 297 | rMessage() << "-- Geometry Store Memory --" << std::endl; |
| 298 | rMessage() << "Number of Frame Buffers: " << NumFrameBuffers << std::endl; |
| 299 | |
| 300 | for (auto i = 0; i < NumFrameBuffers; ++i) |
| 301 | { |
| 302 | rMessage() << "Frame Buffer " << i << std::endl; |
| 303 | rMessage() << " Vertices: " << string::getFormattedByteSize(_frameBuffers[i].vertices.getBufferSizeInBytes()) << std::endl; |
| 304 | rMessage() << " Indices: " << string::getFormattedByteSize(_frameBuffers[i].indices.getBufferSizeInBytes()) << std::endl; |
| 305 | |
| 306 | auto logSize = _frameBuffers[i].vertexTransactionLog.capacity() + _frameBuffers[i].indexTransactionLog.capacity(); |
| 307 | rMessage() << " Transaction Logs: " << string::getFormattedByteSize(logSize * sizeof(detail::BufferTransaction)) << std::endl; |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | private: |
| 312 | FrameBuffer& getCurrentBuffer() |
no test coverage detected