@Vegz78 Here’s the prior, related discussion: Micro:bit analog read is agonizingly slow? (my first reply and second reply)
As part of that discussion I created a “faster forever” that has less of a delay and, consequently, is a little faster. It’s merely a proof-of-concept, but it’s at: https://github.com/bsiever/pxt-fastloops . There are two variations: a fast forever
that can run about 250 times per second (depending on the code within it) and a faster forever with pause
that can be even faster, but it’s more likely to starve out other tasks or miss events.
I was also starting on a variation that’s here: https://github.com/bsiever/pxt-fiberutils … It’s a little faster (360Hz), but doesn’t detect most events. It seems like the additional difficulty of using it would outweigh any benefits in most cases. (If/when time permits, I may look into event handling a bit more)