90% of CPU time being used by 'mach_msg_trap'

Discussion in 'iOS Programming' started by PaperFace, Oct 7, 2008.

  1. PaperFace macrumors newbie

    Sep 18, 2008
    Decided to run a few performance tests on a game I'm writing, and noticed in the CPU test it says mach_msg_trap is taking up 88% of the CPU time.

    Had a google and found a couple of similar questions, but neither got a solid response. Is this normal? and if not, any ideas what could be causing it?

    I'm writing a game which runs on a timer, doubt it has much idle time between frames as I'm pushing the hardware (both cpu and the powervr) a fair bit.
  2. Encryptic macrumors member

    Jul 27, 2008
    I don't have much information for you, but the sound of "mach_msg_trap" sounds to me like the following, it sounds like the an OS level Interrupt/Trap which is signaling your timer. I believe that from previous experience in OS X "Mach" is the Kernel.

    Sorry I can't be more help!

Share This Page