mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
e93449571d
commit
46d6ff0b59
2 changed files with 3 additions and 17 deletions
15
src/bgfx.cpp
15
src/bgfx.cpp
|
@ -852,19 +852,6 @@ namespace bgfx
|
||||||
#endif // BGFX_CONFIG_DEBUG
|
#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()
|
void Context::freeDynamicBuffers()
|
||||||
{
|
{
|
||||||
for (uint16_t ii = 0, num = m_numFreeDynamicIndexBufferHandles; ii < num; ++ii)
|
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) );
|
memcpy(m_submit->m_other, m_other, sizeof(m_other) );
|
||||||
m_submit->finish();
|
m_submit->finish();
|
||||||
|
|
||||||
dumpViewStats();
|
|
||||||
|
|
||||||
Frame* temp = m_render;
|
Frame* temp = m_render;
|
||||||
m_render = m_submit;
|
m_render = m_submit;
|
||||||
m_submit = temp;
|
m_submit = temp;
|
||||||
|
|
|
@ -2551,9 +2551,10 @@ namespace bgfx
|
||||||
void frame();
|
void frame();
|
||||||
void frameNoRenderWait();
|
void frameNoRenderWait();
|
||||||
void swap();
|
void swap();
|
||||||
bool renderFrame(); // render thread
|
|
||||||
void rendererFlip();
|
|
||||||
|
|
||||||
|
// render thread
|
||||||
|
bool renderFrame();
|
||||||
|
void rendererFlip();
|
||||||
void rendererInit();
|
void rendererInit();
|
||||||
void rendererShutdown();
|
void rendererShutdown();
|
||||||
void rendererCreateIndexBuffer(IndexBufferHandle _handle, Memory* _mem);
|
void rendererCreateIndexBuffer(IndexBufferHandle _handle, Memory* _mem);
|
||||||
|
|
Loading…
Reference in a new issue