Reformat code inline to lifecycle.
Assert invalidation required when setting frame rate.