Merge pull request #590 from diamante0018/refactor/largelocal
[LargeLocal]: CanUseServerLargeLocal
This commit is contained in:
commit
be2283e302
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
namespace Game::Engine
|
namespace Game::Engine
|
||||||
{
|
{
|
||||||
#define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread())
|
|
||||||
|
|
||||||
LargeLocal::LargeLocal(int sizeParam)
|
LargeLocal::LargeLocal(int sizeParam)
|
||||||
{
|
{
|
||||||
assert(sizeParam);
|
assert(sizeParam);
|
||||||
@ -89,4 +87,9 @@ namespace Game::Engine
|
|||||||
|
|
||||||
return &g_largeLocalBuf[startIndex];
|
return &g_largeLocalBuf[startIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CanUseServerLargeLocal()
|
||||||
|
{
|
||||||
|
return SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,4 +26,6 @@ namespace Game::Engine
|
|||||||
extern void LargeLocalEndRight(int startPos);
|
extern void LargeLocalEndRight(int startPos);
|
||||||
|
|
||||||
extern void* LargeLocalGetBuf(int startPos, int size);
|
extern void* LargeLocalGetBuf(int startPos, int size);
|
||||||
|
|
||||||
|
extern int CanUseServerLargeLocal();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user