@ -46,6 +46,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- `blueprint`: add the ``--cursor`` option to set the starting coordinate for the generated blueprints. a game cursor is no longer necessary if this option is used.
- `blueprint`: add the ``--cursor`` option to set the starting coordinate for the generated blueprints. a game cursor is no longer necessary if this option is used.
- `quickfort`: the Dreamfort blueprint set can now be comfortably built in a 1x1 embark
- `quickfort`: the Dreamfort blueprint set can now be comfortably built in a 1x1 embark
- `tweak` hide-priority: changed so that priorities stay hidden (or visible) when exiting and re-entering the designations menu
- `tweak` hide-priority: changed so that priorities stay hidden (or visible) when exiting and re-entering the designations menu
- `embark-assistant`: slightly improved performance of surveying and improved code a little
## Lua
## Lua
- ``gui.Painter``: fixed error when calling ``viewport()`` method
- ``gui.Painter``: fixed error when calling ``viewport()`` method
// using uint8_t instead of bool as vector<bool> gets optimized for a small memory footprint which leads to a significant overhead when iterating over all entries,
std::vector<bool>economics;
// also there seems to be no template specialization for std::fill in MSVS C++11 in regards to std::vector<bool> and std::memset does not work as expected (=> not at all that is)
std::vector<bool>minerals;
// have a look here https://github.com/DFHack/dfhack/pull/1771#discussion_r579498636 for the related discussion and furter resources
// std::memset is much faster than std::fill and also faster than direct assignment - also std::fill might be compiled to std::memset but is not guaranteed to happen
mlt.metals[l]=false;
// have a look here for why: https://travisdowns.github.io/blog/2020/01/20/zero.html