Envelope detector and distortions
If your diode is of silicon, voltage drops around 0.7 V and peak of output is only 1 - 0.7 = 0.3 V at maximum.
That's why blue plot looks apart from green plot however you change RC constant.