Мелочи

This commit is contained in:
2025-03-02 22:01:06 +06:00
parent 00d0eec88f
commit e99ae2f6ba
5 changed files with 5 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ protected:
};
class AsyncSocket : public AsyncObject {
NetPool::Array<16> RecvBuffer, SendBuffer;
NetPool::Array<32> RecvBuffer, SendBuffer;
size_t RecvPos = 0, RecvSize = 0, SendSize = 0;
bool ReadShutdowned = false;
tcp::socket Socket;

View File

@@ -81,6 +81,7 @@ class GameServer : public AsyncObject {
// Вычисляет окружности обозримой области
// depth ограничивает глубину входа в ContentBridges
std::vector<ContentViewCircle> accumulateContentViewCircles(ContentViewCircle circle, int depth = 2);
// Вынести в отдельный поток
static ContentViewGlobal makeContentViewGlobal(const std::vector<ContentViewCircle> &views);
ContentViewGlobal makeContentViewGlobal(ContentViewCircle circle, int depth = 2) {
return makeContentViewGlobal(accumulateContentViewCircles(circle, depth));