From 46d6ff0b59d779633ef5a766ddd99a11b7093482 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 5 Oct 2013 19:46:57 -0700 Subject: [PATCH] Cleanup. --- src/bgfx.cpp | 15 --------------- src/bgfx_p.h | 5 +++-- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 1939d7eb..3396f084 100755 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -852,19 +852,6 @@ namespace bgfx #endif // BGFX_CONFIG_DEBUG } - void Context::dumpViewStats() - { -#if 0 // BGFX_CONFIG_DEBUG - for (uint8_t view = 0; view < BGFX_CONFIG_MAX_VIEWS; ++view) - { - if (0 < m_seq[view]) - { - BX_TRACE("%d: %d", view, m_seq[view]); - } - } -#endif // BGFX_CONFIG_DEBUG - } - void Context::freeDynamicBuffers() { for (uint16_t ii = 0, num = m_numFreeDynamicIndexBufferHandles; ii < num; ++ii) @@ -961,8 +948,6 @@ namespace bgfx memcpy(m_submit->m_other, m_other, sizeof(m_other) ); m_submit->finish(); - dumpViewStats(); - Frame* temp = m_render; m_render = m_submit; m_submit = temp; diff --git a/src/bgfx_p.h b/src/bgfx_p.h index c24cdb6a..da436945 100755 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -2551,9 +2551,10 @@ namespace bgfx void frame(); void frameNoRenderWait(); void swap(); - bool renderFrame(); // render thread - void rendererFlip(); + // render thread + bool renderFrame(); + void rendererFlip(); void rendererInit(); void rendererShutdown(); void rendererCreateIndexBuffer(IndexBufferHandle _handle, Memory* _mem);