Merge pull request #475 from diamante0018/develop
[Voice] Use regular heap alloc instead of large local
This commit is contained in:
commit
8956aa0945
@ -1,5 +1,4 @@
|
|||||||
#include <STDInclude.hpp>
|
#include <STDInclude.hpp>
|
||||||
#include "Game/Engine/LargeLocal.hpp"
|
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
@ -40,8 +39,8 @@ namespace Components
|
|||||||
Game::msg_t msg{};
|
Game::msg_t msg{};
|
||||||
const auto clientNum = client - Game::svs_clients;
|
const auto clientNum = client - Game::svs_clients;
|
||||||
|
|
||||||
const Game::Engine::LargeLocal msg_buf_large_local(0x10000);
|
const auto msg_buf_large = std::make_unique<unsigned char[]>(0x10000);
|
||||||
auto* msg_buf = static_cast<unsigned char*>(msg_buf_large_local.GetBuf());
|
auto* msg_buf = msg_buf_large.get();
|
||||||
|
|
||||||
assert(VoicePacketCount[clientNum] >= 0);
|
assert(VoicePacketCount[clientNum] >= 0);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ namespace Game::Engine
|
|||||||
LargeLocal& operator=(LargeLocal&&) = delete;
|
LargeLocal& operator=(LargeLocal&&) = delete;
|
||||||
LargeLocal& operator=(const LargeLocal&) = delete;
|
LargeLocal& operator=(const LargeLocal&) = delete;
|
||||||
|
|
||||||
void* GetBuf() const;
|
[[nodiscard]] void* GetBuf() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void PopBuf();
|
void PopBuf();
|
||||||
|
Loading…
Reference in New Issue
Block a user