tachyon
2005.07.18, 09:16 AM
Okay, this has been driving me crazy. I have implemented threading in my engine using both pthreads and carbon threads. I run the engine with carbon threading enabled and it works fine, using a decent amount of cpu. Now, I run the engine with pthreads enabled and the cpu usage shows 100%!
The problem with carbon threading was that I couldn't choose the scheduling priority (i wanted the threads to have higher priority than the gui effects, which seem to be extremely high (expose etc), as this was causing stuttering in my audio stream)
So the pthreads implementation fixed my problem with the scheduling, ie the gui effects don't interfere with my engine anymore. However, it shows 100% cpu usage.
Has anyone every experienced this or know of any issues with pthreads?
Sorry for rambling, i've been trying to work this out all day. Any help or comments would be appreciated. :)
The problem with carbon threading was that I couldn't choose the scheduling priority (i wanted the threads to have higher priority than the gui effects, which seem to be extremely high (expose etc), as this was causing stuttering in my audio stream)
So the pthreads implementation fixed my problem with the scheduling, ie the gui effects don't interfere with my engine anymore. However, it shows 100% cpu usage.
Has anyone every experienced this or know of any issues with pthreads?
Sorry for rambling, i've been trying to work this out all day. Any help or comments would be appreciated. :)