01-20-2012 10:20 AM
I've tried searching but have not been able to find answers to the following:
1) Is there a way to monitor CPU usage on playbook - Process monitor?
2) I'm trying to make use of both CPU cores and have created a thread to do processing and update my screen in the main thread but can not seem to get any extra performance by threading. I've event tried setting the thread afinities for the main app and processing thread to seperate cores but with no success. Does anyone know how to properly make use of the second cpu core?
01-20-2012 10:36 AM - edited 01-20-2012 12:01 PM
If rooted, the "pidin" command could work for you. (Edit: but Elena clearly has a better idea, see below.)
And sorry, I can't help with the basic question other than to suggest an experiment involving splitting your code across two apps to explore whether even that seems to let them use separate cores effectively.
01-24-2012 01:53 PM
Thanks for the info, I gave the IDE real time statistics a look. Unfortunately it does not give me the information I was looking for. So I did the following:
1) Added a call to ClockCycles() before and after the Render loop, and before and after the Update loop with the update loop running as a seperate thread.
2) Compared ClockCycles before / after each loop call.
From this information I could determine when each loop was running and for how long. Without creating a thread all updates were sequential as expected. Running with a thread the ClockCycles overlapped each other. From this I can infer that the thread must be running in the other core (maybe). I will need to do some more analysis of the timestamps and cycle times to be sure that the thread isn't just being interrupted on the same core.
With enough samples I should be able to determine the total run time both with and without threading to prove that I am getting increased performance. It is likely that I am, just not as much as I was hoping for.
Thanks for all the help