Implement automatic MD2D performance optimizer

[#46121501]

It tries to ensure that the simulation speed is appropriate and
animation as smooth as possible.
Use automatic performance optimizer in "Performance Tuning" interactive

[#46121501]