mirror of
https://github.com/celisej567/BCWSsrc.git
synced 2026-09-15 20:12:39 +03:00
Initial Mapbase commit (squashed from mapbase-beta)
This commit is contained in:
@@ -19,7 +19,13 @@
|
||||
#include "threads.h"
|
||||
#include "pacifier.h"
|
||||
|
||||
#ifdef MAPBASE
|
||||
// This was suggested in that Source 2013 pull request that fixed Vrad.
|
||||
// I trust their judgement on this.
|
||||
#define MAX_THREADS 32
|
||||
#else
|
||||
#define MAX_THREADS 16
|
||||
#endif
|
||||
|
||||
|
||||
class CRunThreadsData
|
||||
|
||||
@@ -16,9 +16,15 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#ifdef MAPBASE
|
||||
// This was suggested in that Source 2013 pull request that fixed Vrad.
|
||||
// I trust their judgement on this.
|
||||
#define MAX_TOOL_THREADS 32
|
||||
#else
|
||||
// Arrays that are indexed by thread should always be MAX_TOOL_THREADS+1
|
||||
// large so THREADINDEX_MAIN can be used from the main thread.
|
||||
#define MAX_TOOL_THREADS 16
|
||||
#endif
|
||||
#define THREADINDEX_MAIN (MAX_TOOL_THREADS)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user