If the swift App is not focused, or not selected it saves the data at slower rates.?. I noticed that there is a variation but not sure if it is related to app being selected or focused.

DispatchQueue.global(qos:.background).async { 
	//do call a c func for bkgrnd processing..save data to disk
	DispatchQueue.main.async {
            //Update UI