mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-26 04:05:58 +00:00
Dedup bindings per encoder. (#3772)
This commit is contained in:
committed by
GitHub
parent
4f101d98be
commit
73629ada72
@@ -5848,7 +5848,7 @@ namespace bgfx { namespace d3d11
|
||||
|
||||
const uint32_t itemIdx = _render->m_sortValues[item];
|
||||
const RenderItem& renderItem = _render->m_renderItem[itemIdx];
|
||||
const RenderBind& renderBind = _render->m_renderItemBind[itemIdx];
|
||||
const RenderBind& renderBind = _render->m_renderBind[isCompute ? renderItem.compute.m_bindIdx : renderItem.draw.m_bindIdx];
|
||||
++item;
|
||||
|
||||
if (viewChanged)
|
||||
@@ -6759,10 +6759,11 @@ namespace bgfx { namespace d3d11
|
||||
);
|
||||
|
||||
double elapsedCpuMs = double(frameTime)*toMs;
|
||||
tvm.printf(10, pos++, 0x8b, " Submitted: %5d (draw %5d, compute %4d) / CPU %7.4f [ms] %c GPU %7.4f [ms] (latency %d) "
|
||||
tvm.printf(10, pos++, 0x8b, " Submitted: %5d (draw %5d, compute %4d) / Binds: %4d / CPU %7.4f [ms] %c GPU %7.4f [ms] (latency %d) "
|
||||
, _render->m_numRenderItems
|
||||
, statsKeyType[0]
|
||||
, statsKeyType[1]
|
||||
, _render->m_numRenderBinds
|
||||
, elapsedCpuMs
|
||||
, elapsedCpuMs > maxGpuElapsed ? '>' : '<'
|
||||
, maxGpuElapsed
|
||||
|
||||
Reference in New Issue
Block a user