Mr Haerr
> No, I think we need to be completely accurate. 
 
I agree it. 
 
 
 
> This divide is not the performance problem in the drawing loop, it is the 
> execution of the switch() statement.
 
But, I have different opinions on that issue.
- The every pixel is divided by 255 in the drawing loop. ( alphablend case )
- In case ARM, ARM core do not support hardware for division. Instead, compiler 
implement a division by calling software routine in C library. The standard 
integer division routine supported by C library takes 20~100 cycle. It depens 
on ARM processor family.
 
 
Anyway, I agree that an accuracy is the most important , too.
 
 
Regards,
Sung Joo
 
-----Original Message-----
From: "Greg Haerr"<g...@censoft.com> 
To: "Sung Joo, Byun"<nh...@naver.com>
Cc: nanogui@linuxhacker.org
Sent: 10-03-12(금) 14:17:51
Subject: Re: [nanogui] Re: Re: [FIX] add alpha channel into GdDrawImage 
software handling
: How about changing from (color/255) to (color>>8) in GdDrawImage() ?
:
: Although it is not an accurate value, but it has the advantage of 
performance.
No, I think we need to be completely accurate. This
divide is not the performance problem in the drawing
loop, it is the execution of the switch() statement.
Regards,
Greg 
---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to