Add async tags for display widget painting

* This prevents widget painting from getting out of control and queuing
  up many redundant paints which slows down processing of the command
  queue.
* Also remove a spammy command to disable pixel context that only ever
  got called when pixel context was already disabled (right after a
  reset - at all other times it stays active).
This commit is contained in:
Baldur Karlsson
2018-03-12 15:46:44 +00:00
parent 62660ce096
commit 1a268ace8b
4 changed files with 6 additions and 11 deletions
-9
View File
@@ -943,19 +943,10 @@ void TextureViewer::UI_UpdateStatusText()
if(m_TexDisplay.customShaderId != ResourceId())
statusText += lit(")");
// PixelPicked = true;
}
else
{
statusText += tr(" - Right click to pick a pixel");
if(m_Output != NULL)
{
m_Ctx.Replay().AsyncInvoke([this](IReplayController *) { m_Output->DisablePixelContext(); });
}
// PixelPicked = false;
}
// try and keep status text consistent by sticking to the high water mark