PDA

View Full Version : Bizarre Bug! Mac Input Event Lag



WarGamer
13th July 2012, 20:13
I just ported an application from windows to mac. It works, but there is this really strange problem. Input events get stuck, sometimes for several seconds, then they are processed by the program some time later. They don't go through until the mouse is moved or some other specific action takes place. The program itself is not lagging, there is plenty of free CPU, and it takes roughly the same amount of resources as the Windows version.

Any ideas on what this can be.

Edit: I found the source of the problem. I am using my own NSRunLoop in order to get events from the NSSpeechSynthesiser. Disabling this solves the problem, but then I don't get my speech events of course.

Any ideas on how I can get both?

Thanks,

Matthew