now optimisation time is inversely proportional to the frame rendering time