]> git.localhorst.tv Git - blank.git/blobdiff - src/generator.hpp
minor optimizations in chunk
[blank.git] / src / generator.hpp
index 3d7ceaff801d82bc2d16e011b4e4d844d4a4a801..dedfb72b7c94fc5461bf795accf09d33f9b86542 100644 (file)
@@ -17,15 +17,15 @@ public:
                unsigned int solid_seed = 0;
                unsigned int type_seed = 0;
                float stretch = 64.0f;
-               float solid_threshold = 0.8f;
+               float solid_threshold = 0.5f;
        };
 
-       explicit Generator(const Config &);
+       explicit Generator(const Config &) noexcept;
 
-       void operator ()(Chunk &) const;
+       void operator ()(Chunk &) const noexcept;
 
-       void Space(Block::Type t) { space = t; }
-       void Light(Block::Type t) { light = t; }
+       void Space(Block::Type t) noexcept { space = t; }
+       void Light(Block::Type t) noexcept { light = t; }
        void Solids(const std::vector<Block::Type> &s) { solids = s; }
 
 private: