Prevent from running some ingame editor code every frame while it's not active.