Process render commands 1 by 1 to allow pre-empting high frequency cmds

This commit is contained in:
baldurk
2017-02-17 20:16:17 +00:00
parent 24c1042f06
commit 1e65762e93
4 changed files with 57 additions and 22 deletions
+1 -1
View File
@@ -1889,7 +1889,7 @@ void BufferViewer::render_clicked(QMouseEvent *e)
if((e->buttons() & Qt::RightButton) && m_Output)
{
m_Ctx.Renderer().AsyncInvoke([this, curpos](IReplayRenderer *r) {
m_Ctx.Renderer().AsyncInvoke("PickVertex", [this, curpos](IReplayRenderer *r) {
uint32_t instanceSelected = 0;
uint32_t vertSelected = m_Output->PickVertex(m_Ctx.CurEvent(), (uint32_t)curpos.x(),
(uint32_t)curpos.y(), &instanceSelected);