Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Look-Up-Table for Sin and Cos
Look-Up-Table for Sin and Cos
08-09-2007, 12:05 AM
#1
Doomhammer
Wouldn't look-up-tables, let's say as arrays with 300-400 fields, be faster than the the sin / cos natives?
Just a thought.
08-09-2007, 01:30 AM
#2
PipeDream
You tell me
08-09-2007, 03:15 AM
#3
Vexorian
was done before, and no, it was not faster.
08-09-2007, 08:17 AM
#4
NightBreeze
http://www.wc3campaigns.net/showthread.php?t=85431
08-09-2007, 11:19 AM
#5
Doomhammer
good to know.
thanks for sharing your experience.
08-09-2007, 05:46 PM
#6
cohadar
Array lookup for sin/cos is not faster than natives even in C/C++
This has probably something got to do with the fact that mathematical
coprocessor is doing cos/sin with array lookup
+ interpolations for higher precision.
08-10-2007, 12:29 AM
#7
PipeDream
Warcraft doesn't use the coprocessor for game state. JASS is implemented 100% through integers.
08-10-2007, 12:31 AM
#8
Vexorian
well, it is better to remove the need for them altogether anyways, although with some really crazy things it is not possible or hard...