mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fix _mm_pause() compiler error and zero initialize atomics
This commit is contained in:
parent
98b8a2b1f4
commit
40c56bad09
1 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@
|
|||
#include "hwrenderer/scene/hw_portal.h"
|
||||
#include "hwrenderer/utility/hw_clock.h"
|
||||
#include "hwrenderer/data/flatvertices.h"
|
||||
#include <immintrin.h>
|
||||
|
||||
CVAR(Bool, gl_multithread, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
|
||||
|
@ -67,8 +68,8 @@ struct RenderJob
|
|||
class RenderJobQueue
|
||||
{
|
||||
RenderJob pool[300000]; // Way more than ever needed. The largest ever seen on a single viewpoint is around 40000.
|
||||
std::atomic<int> readindex;
|
||||
std::atomic<int> writeindex;
|
||||
std::atomic<int> readindex{};
|
||||
std::atomic<int> writeindex{};
|
||||
public:
|
||||
void AddJob(int type, subsector_t *sub, seg_t *seg = nullptr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue