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
+4 -2
View File
@@ -2185,11 +2185,13 @@ void TextureViewer::render_mouseMove(QMouseEvent *e)
m_PickedPoint.setX(qBound(0, m_PickedPoint.x(), (int)texptr->width - 1));
m_PickedPoint.setY(qBound(0, m_PickedPoint.y(), (int)texptr->height - 1));
INVOKE_MEMFN(RT_PickPixelsAndUpdate);
m_Ctx.Renderer().AsyncInvoke("PickPixelClick",
[this](IReplayRenderer *r) { RT_PickPixelsAndUpdate(r); });
}
else if(e->buttons() == Qt::NoButton)
{
INVOKE_MEMFN(RT_PickHoverAndUpdate);
m_Ctx.Renderer().AsyncInvoke("PickPixelHover",
[this](IReplayRenderer *r) { RT_PickHoverAndUpdate(r); });
}
}
}