Invalidate the current rendering and refresh it again.
Signature:
invalidate(nframes?: number): void;
Returns:
void