I have an application that prints clock.fps() to UART. Usually the value hovers around 92 FPS which is great but once in a while, there is a sudden drop to 0 after which the value bounces back up.
Is this happening because of the garbage collector? I have tried declaring most variables as const or declaring them outside the main while loop. Are there any solutions other than calling gc.disable() ?