gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > speed of bios atan2 (swi #6) vs other implentations

#227 - jaymzjulian - Sun Jan 05, 2003 9:19 am

I was wondering if anyone around here has any data on how fast the bios atan2 function is in comparison to other implentations of the same thing, but i'd rather not rip apart my already-too-damn-complicated-arg-i-can't-believe-i-wrote-that-shit lighting code if there's going to be no benefit

- jj

#235 - Touchstone - Sun Jan 05, 2003 12:56 pm

I don't have any information on the systemcall atan2 but why don't you write your own speed performance analyzer. Just an increasing timer counter with the highest resolution possible/suitable will do! That way you can always check the difference in speed between different implementations, it's really handy. If you write a separate test-bed when checking performance you better make sure the compiler doesn't do any unexpected optimizations. :P