frameGeneration
Monotonic generation that changes on any visually relevant mutation.
Consumers can use this as a cheap "anything changed?" check. Callers must compare for equality or inequality rather than assuming the value remains positive forever.