mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
Only render player sprites on main thread
This commit is contained in:
parent
beae9a3dc7
commit
d1cbb76b63
2 changed files with 2 additions and 3 deletions
|
@ -48,6 +48,7 @@
|
||||||
#include "swrenderer/drawers/r_thread.h"
|
#include "swrenderer/drawers/r_thread.h"
|
||||||
#include "swrenderer/r_memory.h"
|
#include "swrenderer/r_memory.h"
|
||||||
#include "swrenderer/r_renderthread.h"
|
#include "swrenderer/r_renderthread.h"
|
||||||
|
#include "swrenderer/things/r_playersprite.h"
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
EXTERN_CVAR(Bool, r_shadercolormaps)
|
||||||
EXTERN_CVAR(Int, r_clearbuffer)
|
EXTERN_CVAR(Int, r_clearbuffer)
|
||||||
|
@ -153,6 +154,7 @@ namespace swrenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderThreadSlices();
|
RenderThreadSlices();
|
||||||
|
MainThread()->PlayerSprites->Render();
|
||||||
RenderDrawQueues();
|
RenderDrawQueues();
|
||||||
|
|
||||||
camera->renderflags = savedflags;
|
camera->renderflags = savedflags;
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
#include "swrenderer/things/r_particle.h"
|
#include "swrenderer/things/r_particle.h"
|
||||||
#include "swrenderer/things/r_sprite.h"
|
#include "swrenderer/things/r_sprite.h"
|
||||||
#include "swrenderer/things/r_wallsprite.h"
|
#include "swrenderer/things/r_wallsprite.h"
|
||||||
#include "swrenderer/things/r_playersprite.h"
|
|
||||||
#include "swrenderer/segments/r_drawsegment.h"
|
#include "swrenderer/segments/r_drawsegment.h"
|
||||||
#include "swrenderer/scene/r_portal.h"
|
#include "swrenderer/scene/r_portal.h"
|
||||||
#include "swrenderer/scene/r_translucent_pass.h"
|
#include "swrenderer/scene/r_translucent_pass.h"
|
||||||
|
@ -213,7 +212,5 @@ namespace swrenderer
|
||||||
clip3d->DeleteHeights();
|
clip3d->DeleteHeights();
|
||||||
clip3d->fake3D = 0;
|
clip3d->fake3D = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread->PlayerSprites->Render();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue