tonemap every 30 seconds to reduce variance in performance measurements
reduce const correctness again

Both Clang and GCC spitted out pages of incomprehensible error messages
originating from the standard library, due to the change. It might be a
bug in GCC’s standard library.
fix reorder warnings