Feature #8725: Fast rendering of geometries

Fix compile errors: include "std::limits"