diff --git a/include/core/vs_log.h b/include/core/vs_log.h index 9a1534c..e8f9ff0 100644 --- a/include/core/vs_log.h +++ b/include/core/vs_log.h @@ -34,7 +34,10 @@ struct VSLog std::make_shared("logs/voxelscape.log", true); auto ostream_sink = std::make_shared(logStream); - const std::vector sinks = {ostream_sink, file_sink}; + + auto console_sink = std::make_shared(); + + const std::vector sinks = {ostream_sink, file_sink, console_sink}; // const auto longestCategoryName = std::max_element( // categoryNames.begin(), categoryNames.end(), [](const auto& a, const auto& b) { diff --git a/include/game/building_loader.h b/include/game/building_loader.h index b0c7b92..45d96ec 100644 --- a/include/game/building_loader.h +++ b/include/game/building_loader.h @@ -67,7 +67,12 @@ namespace BuildingParser nlohmann::json componentJson; componentsFile >> componentJson; - VSLog::Log(VSLog::Category::Core, VSLog::Level::info, "{0}", componentJson.dump(4)); + VSLog::Log( + VSLog::Category::Game, + VSLog::Level::info, + "Loaded Building \"{0}\":\n{1}", + buildingDirectory.string(), + componentJson.dump(4)); if (!componentJson.contains("uuid")) { diff --git a/include/world/vs_chunk_manager.h b/include/world/vs_chunk_manager.h index 419ca71..3cd1928 100644 --- a/include/world/vs_chunk_manager.h +++ b/include/world/vs_chunk_manager.h @@ -196,7 +196,8 @@ class VSChunkManager : public IVSDrawable std::map> activeVisibilityBuildTasks; - const static inline auto maxShadowUpdateThreads = std::thread::hardware_concurrency(); + const static inline auto maxShadowUpdateThreads = + std::thread::hardware_concurrency() == 0 ? 4 : std::thread::hardware_concurrency() + 1; const static inline std::vector blockEmission = { /*Air=0*/ 0.F, diff --git a/resources/models/cube.blend b/resources/models/cube.blend index 8583861..c9c64ea 100644 Binary files a/resources/models/cube.blend and b/resources/models/cube.blend differ diff --git a/resources/models/cube.blend1 b/resources/models/cube.blend1 index 4102765..8583861 100644 Binary files a/resources/models/cube.blend1 and b/resources/models/cube.blend1 differ