Мелочи
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@
|
|||||||
/resources.cpp
|
/resources.cpp
|
||||||
/imgui.ini
|
/imgui.ini
|
||||||
/data
|
/data
|
||||||
|
/gmon.out
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections -ffunction-sections -DGL
|
|||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections") # -rdynamic
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections") # -rdynamic
|
||||||
|
|
||||||
# gprof
|
# gprof
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
|
||||||
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
|
||||||
|
|
||||||
# sanitizer
|
# sanitizer
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class AsyncSocket : public AsyncObject {
|
class AsyncSocket : public AsyncObject {
|
||||||
NetPool::Array<16> RecvBuffer, SendBuffer;
|
NetPool::Array<32> RecvBuffer, SendBuffer;
|
||||||
size_t RecvPos = 0, RecvSize = 0, SendSize = 0;
|
size_t RecvPos = 0, RecvSize = 0, SendSize = 0;
|
||||||
bool ReadShutdowned = false;
|
bool ReadShutdowned = false;
|
||||||
tcp::socket Socket;
|
tcp::socket Socket;
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ class GameServer : public AsyncObject {
|
|||||||
// Вычисляет окружности обозримой области
|
// Вычисляет окружности обозримой области
|
||||||
// depth ограничивает глубину входа в ContentBridges
|
// depth ограничивает глубину входа в ContentBridges
|
||||||
std::vector<ContentViewCircle> accumulateContentViewCircles(ContentViewCircle circle, int depth = 2);
|
std::vector<ContentViewCircle> accumulateContentViewCircles(ContentViewCircle circle, int depth = 2);
|
||||||
|
// Вынести в отдельный поток
|
||||||
static ContentViewGlobal makeContentViewGlobal(const std::vector<ContentViewCircle> &views);
|
static ContentViewGlobal makeContentViewGlobal(const std::vector<ContentViewCircle> &views);
|
||||||
ContentViewGlobal makeContentViewGlobal(ContentViewCircle circle, int depth = 2) {
|
ContentViewGlobal makeContentViewGlobal(ContentViewCircle circle, int depth = 2) {
|
||||||
return makeContentViewGlobal(accumulateContentViewCircles(circle, depth));
|
return makeContentViewGlobal(accumulateContentViewCircles(circle, depth));
|
||||||
|
|||||||
Reference in New Issue
Block a user