Fix texture loading race condition and improve performance by only locking the load mutex if data hasn't already been updated for this frame

This commit is contained in:
Magnus Norddahl 2021-02-17 01:43:22 +01:00 committed by Rachael Alexanderson
commit 61d49a2007
13 changed files with 98 additions and 111 deletions

View file

@ -270,8 +270,6 @@ namespace swrenderer
portalfloorclip[x] = mfloorclip[x];
}
thread->PrepareTexture(pic, RenderStyle);
ProjectedWallLight mlight;
mlight.SetSpriteLight();