Simple implementation of a variable peak sawtooth generator?

I want to implement a fixed-frequency sawtooth generator with a peak voltage (Vpk) that I can control using an external variable (Vx). I created a simple circuit using a voltage controlled current source, a capacitor, and a reset switch like the figure below. However, this circuit increase the single simulation time from 0.2 second to 2.7 second. The time factor is important for me because I am doing thousands of simulation runs (optimization loop).

Is there a simpler and faster way to implement this variable-peak sawtooth generator (ideal ways are ok)?

Thanks

BuckClosedLoop_PI_FF.plecs (35.9 KB)

You can use a Triangular Wave Generator with a ramp between 0-1. Then multiply the output Vx. Placing a zero-order hold after Vx ensures the ramp peak is only updated on the carrier minimum. See the attached model.

VariablePeakSawtooth.plecs (7.19 KB)