from gfx3d import Gfx3d
from math import sin,cos
from utime import ticks_us, ticks_diff

gfx=Gfx3d()

@micropython.viper
def gfx_test():
  g=ptr32(gfx.isin)
  for i in range(0,360,5):
    x=g[i]
    x=g[i+1]
    x=g[i+2]
    x=g[i+3]
    x=g[i+4]


def sin_test():
  r=range(360)
  for i in r:
    x=sin(i)


ticks=ticks_us()
gfx_test()
print(ticks_diff(ticks_us(),ticks))

ticks=ticks_us()
sin_test()
print(ticks_diff(ticks_us(),ticks))

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT