Try some of the following pragmas:
#pragma DisableBackgroundTasks
#pragma DisableBoundsChecking
#pragma DisableAutoWaitCursor
#pragma StackOverflowChecking FALSE
#pragma NilObjectChecking FALSE
Note, not all of them will work in the main run event of threads,
some only work with loops, your milage may vary, etc., etc., etc.
John
On Aug 5, 2006, at 4:02 PM, Maarten de Vries wrote:
I've made an app wich plays a song with 16 noteplayer (to support
the 16
midi channels). It can load a midi file, play it and show the
keypresses on
a virtual piano (wich you can also play yourself, but that's
besides the
point). The problem is, I play the song in a thread and make it
sleep until
the next command. However, with a big midi file performance goes
down a bit.
If I press the mouse anywhere it suddenly gets a lot better. That's
because
it starts using all availeble CPU, so the playing thread also gets
a lot
more. But I wan't that to be the case always, not just when I keep
the mouse
pressed. So how can I force my app to use more CPU? (the playing
thread has
priority 10 btw)
Thanks in advance,
Maarten
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>