Commit 5d0009c7 authored by Shu's avatar Shu 🍠
Browse files

QUIC protocol

parent fde2f4c6
......@@ -40,6 +40,26 @@
"ignoreFailures": true
}
]
},
{
"name": "Run server (gdb debug)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/univerxel-server",
"args": ["server.toml"],
"preLaunchTask": "Build debug server",
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Activer l'impression en mode Pretty pour gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
\ No newline at end of file
......@@ -41,6 +41,15 @@
"cwd": "${workspaceRoot}/build"
}
},
{
"label": "make server",
"type": "shell",
"command": "make",
"args": ["univerxel-server"],
"options": {
"cwd": "${workspaceRoot}/build"
}
},
{
"label": "exec",
"type": "shell",
......@@ -91,6 +100,12 @@
"dependsOrder": "sequence",
"dependsOn": ["cmake debug", "make"]
},
{
"label": "Build debug server",
"group": "build",
"dependsOrder": "sequence",
"dependsOn": ["cmake debug", "make server"]
},
{
"label": "Rebuild",
"group": "build",
......
......@@ -8,6 +8,16 @@ option(USE_FMA "Use fma" 1)
option(LOG_DEBUG "Show debug logs" 0)
option(LOG_TRACE "Show trace logs" 0)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
endif(CCACHE_FOUND)
add_subdirectory("deps/glfw")
add_subdirectory("deps/glm")
add_subdirectory("deps/picoquic")
add_subdirectory("deps/zstd")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
......@@ -15,16 +25,6 @@ endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
endif(CCACHE_FOUND)
add_subdirectory("include/glfw")
add_subdirectory("include/glm")
add_subdirectory("include/enet")
add_subdirectory("include/zstd")
add_compile_definitions(FIXED_WINDOW=${FIXED_WINDOW} LOG_DEBUG=${LOG_DEBUG} LOG_TRACE=${LOG_TRACE} HN_USE_FILESYSTEM=1)
if(PROFILING)
add_compile_definitions(TRACY_ENABLE=1)
......@@ -39,16 +39,16 @@ if(USE_FMA)
add_definitions(-mfma)
endif(USE_FMA)
file(GLOB_RECURSE CORE_SOURCES "src/core/*.cpp" "include/tracy/TracyClient.cpp")
set(CORE_HEADERS "include/toml++" "include/robin_hood" "include/libguarded" "include/tracy")
set(CORE_LIBS pthread dl glm::glm_static enet::enet_static zstd::zstd_static)
file(GLOB_RECURSE CORE_SOURCES "src/core/*.cpp" "deps/tracy/TracyClient.cpp")
set(CORE_HEADERS "deps/toml++" "deps/robin_hood" "deps/libguarded" "deps/tracy")
set(CORE_LIBS pthread dl glm::glm_static picoquic-core zstd::zstd_static)
file(GLOB_RECURSE CLIENT_SOURCES "src/client/*.cpp" "include/imgui/*.cpp" "include/meshoptimizer/*.cpp" "include/gl3w/gl3w.c" "include/volk/volk.c")
set(CLIENT_HEADERS "include/imgui" "include/meshoptimizer" "include/gl3w" "include/volk")
file(GLOB_RECURSE CLIENT_SOURCES "src/client/*.cpp" "deps/imgui/*.cpp" "deps/meshoptimizer/*.cpp" "deps/gl3w/gl3w.c" "deps/volk/volk.c")
set(CLIENT_HEADERS "deps/imgui" "deps/meshoptimizer" "deps/gl3w" "deps/volk")
set(CLIENT_LIBS glfw)
file(GLOB_RECURSE SERVER_SOURCES "src/server/*.cpp" "include/FastNoiseSIMD/*.cpp")
set(SERVER_HEADERS "include/FastNoiseSIMD")
file(GLOB_RECURSE SERVER_SOURCES "src/server/*.cpp" "deps/FastNoiseSIMD/*.cpp")
set(SERVER_HEADERS "deps/FastNoiseSIMD")
set(SERVER_LINKED)
# All in one exec
......
......@@ -31,7 +31,7 @@ Experimental project using OpenGL and Vulkan.
* OpenGL
* Vulkan
* ImGui
* ENet
* PicoQUIC
* FasNoiseSIMD
* Love and insomnia
......@@ -44,6 +44,7 @@ Get a release compatible with your system window library and processor capabilit
### Prerequisites
* OpenGL or Vulkan driver
* OpenSSL 1.1+
### Usage
......@@ -65,6 +66,7 @@ To get a local copy up and running, follow these simple steps.
* C++17
* CMake 3.11
* System window headers *(xorg-dev)*
* OpenGL, Vulkan and OpenSSL headers
#### Optionally
......
......@@ -8,13 +8,12 @@
## Hello other
- [~] Multiplayer
- [x] Multiplayer
- [~] Chat
- Private messages
- [~] Authentication
- [x] Compression
- [ ] Encryption
- DTLS
- [x] Encryption
- [x] Embedded
- [x] Standalone
......@@ -38,6 +37,7 @@
- [ ] Get models
- [ ] Reduce compile unit count
- [ ] Review documentation
- [ ] Clean kick
## Hello universe
......@@ -78,7 +78,7 @@
- [ ] Break area part to entity
- [ ] Slash screen
- [ ] Start/Pause menu
- [ ] QUIC protocol
- [x] QUIC protocol
- [ ] 8 for 1 contouring problem
- [ ] Use in memory protocol (to replace server_handle)
- [ ] Octree
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment