VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: mock me please, I need it! Jay Wheeler (8 replies, 0 views) (2000-Aug-2) Avoid the lookup tables, they are much slower. In C++ they are faster, but even highly optimized VB code I could NOT get to run at anywhere near the speed of the built in SIN and COS functions. The array/memory access is just too slow to be worth your time.
(Even after I compiled, I wrote a function to compute like 100,000 random sines and cosines using each method, and the built in ones are roughly 5 times as fast.)
|