Even with CRF, it still partially uses the bitrate that is set. Only by adding in qp=18 for advanced x264 options will it then use a constant quality mode that ignores the bitrate. lower qp = better quality at the cost of bigger size. May need to do some testing until happy with the results.
Constant bitrate mode is needed for streaming in which the quality suffers at high motion.
Constant quality mode can keep the high motion at the same good quality, which can be used for recording.
You may try using hardware encoders for recordings to take some load off the CPU if possible, which itself may have different options. Hardware encoder might produce better quality then using x264 at "UltraFast", if your CPU too weak to use slower CPU presets.