avoid saving settings repeatedly every frame