Jun 3, 2023 at 8:07pm UTC
Interesting. "App Nap" could indeed be the problem here. Was suspecting something like that, but didn't know how it might be called!
Too bad that the suggested code to disable "App Nap" is in Objective-C++ 😱
Last edited on Jun 3, 2023 at 8:51pm UTC
Jun 4, 2023 at 9:32pm UTC
Last edited on Jun 4, 2023 at 9:33pm UTC
Jun 5, 2023 at 10:45am UTC
Okay, I compiled the Objective-C version of disable_app_nap()
with Clang and linked in the resulting .o
file.
It also was necessary to add -framework Foundation
to the linker options.
So far, it seems that the weird "delays" are no longer occurring, after "App Nap" has been disabled 😤
Last edited on Jun 5, 2023 at 10:47am UTC
Jun 5, 2023 at 6:48pm UTC
Heh, you put "App Nap" to sleep. If only temporarily. :Þ
Mac OS shows it can be as annoying as MS Windows from time to time. Hold the users' hand presuming they are all idiots while making things difficult for programmers.