astar, optimise raf-fps