you know Im no dev, but maybe it's worth looking into (if possible) offloading the decoding to cuda or the alternatives ?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.