From 1aec19fba2f285240da6e63b62dcfa724dab4c60 Mon Sep 17 00:00:00 2001 From: schulz Date: Wed, 15 Mar 2017 06:21:44 +0000 Subject: [PATCH] Do not signal GUI task to redraw *whole* screen when renderer completed processing of one tile. Send tile redraw request only. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54137 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- test/smp/smp-smallpt/smallpt.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/smp/smp-smallpt/smallpt.cc b/test/smp/smp-smallpt/smallpt.cc index bee7004699..2c83ba4cd8 100644 --- a/test/smp/smp-smallpt/smallpt.cc +++ b/test/smp/smp-smallpt/smallpt.cc @@ -387,7 +387,16 @@ __prepare(); #endif } __test(); - Signal((struct Task *)guiPort->mp_SigTask, SIGBREAKF_CTRL_D); +// Signal((struct Task *)guiPort->mp_SigTask, SIGBREAKF_CTRL_D); + + m = AllocMsg(&msgPool); + m->mm_Message.mn_Length = sizeof(struct MyMessage); + m->mm_Message.mn_ReplyPort = port; + m->mm_Type = MSG_REDRAWTILE; + m->mm_Body.RedrawTile.TileX = tile_x; + m->mm_Body.RedrawTile.TileY = tile_y; + PutMsg(guiPort, &m->mm_Message); + redraw = TRUE; m = AllocMsg(&msgPool); m->mm_Message.mn_Length = sizeof(struct MyMessage); -- 2.11.4.GIT