A recent release included an option to make drivers and apps single threaded. This is recommended over using atomicState. I have changed a few of my apps to use this because of similar challenges as the OP and it’s worked awesome.