This RAM is used to buffer the captured video. If you write the replay buffer to disk, you're writing what's buffered in RAM. The amount of RAM defines directly how long the buffered video can be: double the RAM, double the buffer length. Replay buffer quality is set by the recording encoder settings. The amount of RAM doesn't relate to quality.