Added a maximum amount of subdivisions per frame functionnality