]> git.localhorst.tv Git - blank.git/blobdiff - src/app/app.cpp
give feedback to stdout when profiling
[blank.git] / src / app / app.cpp
index a6acade2c30f3f8eaf898160b922e84b0b810cac..0e2a639f21053ad234353424efef7a2fd2383bd9 100644 (file)
@@ -18,6 +18,7 @@
 #include "../world/Entity.hpp"
 
 #include <fstream>
+#include <iomanip>
 #include <iostream>
 #include <stdexcept>
 #include <SDL_image.h>
@@ -63,6 +64,12 @@ void Application::RunT(size_t t) {
 void Application::RunS(size_t n, size_t t) {
        for (size_t i = 0; HasState() && i < n; ++i) {
                Loop(t);
+               std::cout << '.';
+               if (i % 16 == 15) {
+                       std::cout << std::setfill(' ') << std::setw(5) << std::right << (i + 1) << std::endl;
+               } else {
+                       std::cout << std::flush;
+               }
        }
 }
 
@@ -269,6 +276,8 @@ void Assets::LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &reg,
                                type.texture = tex_index.GetID(tex_name);
                        } else if (name == "color") {
                                in.ReadVec(type.color);
+                       } else if (name == "outline") {
+                               in.ReadVec(type.outline_color);
                        } else if (name == "label") {
                                in.ReadString(type.label);
                        } else if (name == "luminosity") {