Mercurial > hg > Game > Cerium
changeset 1116:8e818d8fa36b draft
It's changed so that CreateSpan may move in the SPE.
remove task_next->wait_for(task_draw_array).
author | tkaito@henri |
---|---|
date | Sat, 22 Jan 2011 23:09:44 +0900 |
parents | e954ec5d9b96 |
children | 19bfb73617ad |
files | Renderer/Engine/viewer.cc TaskManager/Cell/CellTaskManagerImpl.cc |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc Tue Jan 18 20:09:17 2011 +0900 +++ b/Renderer/Engine/viewer.cc Sat Jan 22 23:09:44 2011 +0900 @@ -610,7 +610,7 @@ task_next->wait_for(task_create_sp); task_create_sp->set_cpu(SPE_ANY); - // task_create_sp->set_cpu(CPU_PPE); + //task_create_sp->set_cpu(CPU_PPE); task_create_sp->spawn(); } @@ -707,7 +707,7 @@ task_draw_array->spawn_task_array(task_draw->next()); task_draw_array->set_cpu(SPE_ANY); - task_next->wait_for(task_draw_array); + //task_next->wait_for(task_draw_array); task_draw_array->spawn();
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Tue Jan 18 20:09:17 2011 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Sat Jan 22 23:09:44 2011 +0900 @@ -149,11 +149,12 @@ { printf("spu_idle! spe_running = %d : activeTaskQueue->length = %d \n" , spe_running_, activeTaskQueue->length()); - HTask *task = activeTaskQueue->getFirst(); - + HTaskPtr task = activeTaskQueue->getFirst(); + int tmp_i = 0; do { printf("task_name = %s ,",ppeManager->get_task_name(task)); - printf("cpu = [%d]", task->cpu_type); + printf("cpu = [%d], count = %d", task->cpu_type, tmp_i); + tmp_i++; } while ((task = activeTaskQueue->getNext(task)) != 0); printf("\n"); }