On Android, racket seems to be busy waiting instead of blocking. I started out with just a read from a socket, and noticed continuous CPU utilization.
I added an explicit blocking sync before the read, and it reported that it was blocked in the sync most of the time, but it was still using a full CPU core: (define evt (peek-bytes-evt 1 0 #f in)) (define start (current-inexact-milliseconds)) (sync evt) (define end (current-inexact-milliseconds)) (printf "blocked ~a ms\n" (- end start)) I then added a (sleep 1.0) statement, which cut the framerate as expected, but it was still using a full core. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.