fix #4326: float overflow in framegrapher
reduce loc