Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/viewer.cc @ 854:6aa20c0dd8f8
may be need ppeManager
author | yutaka@localhost.localdomain |
---|---|
date | Wed, 09 Jun 2010 23:04:09 +0900 |
parents | 0c7d885f0c92 |
children | f7276b509710 |
comparison
equal
deleted
inserted
replaced
853:fc521121ca8a | 854:6aa20c0dd8f8 |
---|---|
566 int starty = spack->info.y_top - split_screen_h + 1; | 566 int starty = spack->info.y_top - split_screen_h + 1; |
567 //int endy = spack->info.y_top; | 567 //int endy = spack->info.y_top; |
568 int rangey = (starty + split_screen_h - 1 > this->height) | 568 int rangey = (starty + split_screen_h - 1 > this->height) |
569 ? this->height - starty + 1 : split_screen_h; | 569 ? this->height - starty + 1 : split_screen_h; |
570 | 570 |
571 #if 1 | 571 #if 0 |
572 | 572 |
573 int array_task_num = (this->width + split_screen_w - 1) / split_screen_w; | 573 int array_task_num = (this->width + split_screen_w - 1) / split_screen_w; |
574 HTaskPtr task_draw_array = manager->create_task_array(DrawSpan, array_task_num, 6, 1, rangey); | 574 HTaskPtr task_draw_array = manager->create_task_array(DrawSpan, array_task_num, 6, 1, rangey); |
575 Task *task_draw = 0; | 575 Task *task_draw = 0; |
576 | 576 |
577 while (startx < this->width) { | 577 while (startx < this->width) { |
578 | 578 |
579 // Draw SpanPack | 579 // Draw SpanPack |
580 | 580 |
581 task_draw = task_draw_array->next_task_array(DrawSpan,task_draw); | 581 task_draw = task_draw_array->next_task_array(DrawSpan,task_draw); |
582 task_draw->set_param(0,(memaddr)&pixels[(startx-1) + this->width*(starty-1)]); | 582 task_draw->set_param(0,(memaddr)&pixels[(startx-1) + this->width*(starty-1)]); |
583 task_draw->set_param(1,this->width); | 583 task_draw->set_param(1,this->width); |
599 | 599 |
600 if (endx > this->width) { | 600 if (endx > this->width) { |
601 endx = this->width; | 601 endx = this->width; |
602 } | 602 } |
603 | 603 |
604 } | 604 } |
605 | 605 |
606 task_draw_array->spawn_task_array(task_draw->next()); | 606 task_draw_array->spawn_task_array(task_draw->next()); |
607 task_draw_array->set_cpu(SPE_ANY); | 607 task_draw_array->set_cpu(SPE_ANY); |
608 task_next->wait_for(task_draw_array); | 608 task_next->wait_for(task_draw_array); |
609 task_draw_array->wait_for(data_update_wait); | 609 task_draw_array->wait_for(data_update_wait); |
610 task_draw_array->spawn(); | 610 task_draw_array->spawn(); |