I've noticed undesirable behaviour: the lower the target FPS is set via SetTargetFPS(), the higher CPU consumption is.
A quick look at WaitTime() suggests that it's probably busy-waiting on AmigaOS. I'm not sure if our usleep() implementation busy-waits as well, but we want WaitTime() to yield the CPU to other tasks until the time delay is up.
I've noticed undesirable behaviour: the lower the target FPS is set via SetTargetFPS(), the higher CPU consumption is.
A quick look at WaitTime() suggests that it's probably busy-waiting on AmigaOS. I'm not sure if our usleep() implementation busy-waits as well, but we want WaitTime() to yield the CPU to other tasks until the time delay is up.