It works fine most of the time, but today I noticed that sometimes it fails to process some requests quickly or fails to process them at all. I started digging and found out that WaitWindowEvent() stops firing after some time, and what is even worse, Delay() in threads also returns much much slower.
Consider this example:
Code: Select all
OpenWindow(0,0,0,400,300,"test",#PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_MinimizeGadget) Procedure simpleThread(dummy) Repeat Delay(900) Debug "thread" ForEver EndProcedure CreateThread(@simpleThread(),0) Repeat ev = WaitWindowEvent(900) Debug "event" Until ev = #PB_Event_CloseWindow
Here's the video showing it on my system:
https://d7.wtf/s/Screen%20Recording%202 ... .27.08.mp4
So what this actually is? Is it a bug? Is it some sort of a sleeping mechanism in macOS? If so, how to avoid it?