Diference between atan2 pawn vs C versions
#10

Nop, still different results using
pawn Код:
angle = 90.0f - ( atan2( y-iy, x-ix ) * ( 180.0f / 3.1415f ) );
Код:
[Wed Dec  1 15:49:58 2010] DEBUG: "!PAWN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1540.967651, Y: -1628.268066, Z: 13.103264 Unghiul 41.641311".
[Wed Dec  1 15:49:58 2010] DEBUG: "!PLUGIN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1540.967651, Y: -1628.268066, Z: 13.103265 Unghiul -41.645187".
[Wed Dec  1 15:50:12 2010] DEBUG: "!PAWN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1545.893432, Y: -1627.286132, Z: 13.092100 Unghiul 339.832031".
[Wed Dec  1 15:50:12 2010] DEBUG: "!PLUGIN- Playerid: X: 1544.198242, Y: -1631.901489, Z: 13.382812 | facingID: X: 1545.893433, Y: -1627.286133, Z: 13.092100 Unghiul 20.165895".
Quote:
Originally Posted by ******
Посмотреть сообщение
However I would be VERY careful with rewriting your mode in C, especially if you have a lot of calls to native functions, because there is no direct access so there are very large overheads involved.
Thank you both for your advices. I'll make some speedtests and see if it worth converting. Probably I'll just rewrite custom functions without samp native functions calls.

Have a nice day,
Mike.
Reply


Messages In This Thread
Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 00:29
Re: Diference between atan2 pawn vs C versions - by Slice - 01.12.2010, 10:46
Re: Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 11:22
Re: Diference between atan2 pawn vs C versions - by Slice - 01.12.2010, 11:25
Re: Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 11:31
Re: Diference between atan2 pawn vs C versions - by Slice - 01.12.2010, 11:35
Re: Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 11:39
Re: Diference between atan2 pawn vs C versions - by Slice - 01.12.2010, 11:50
Re: Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 11:53
Re: Diference between atan2 pawn vs C versions - by xxmitsu - 01.12.2010, 12:43

Forum Jump:


Users browsing this thread: 2 Guest(s)