Why is this code so slow

Blitz3D Forums/Blitz3D Programming/Why is this code so slow

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

wont that be too slow?

ive stored the vcount in the water type to eliminate the uneccacery code:

Function UpdateWater()
For wa.water=Each water
wa\phase=wa\phase+wa\speed
la=wa\phase
wa\v=wa\v+1:
For v = 1 To wa\vcount
la=la+wa\speed
VertexCoords wa\surf,v,VertexX(wa\surf,v),(Sin(la)*wa\amplitude),VertexZ(wa\surf,v)
Next
UpdateNormals wa\h
Next
End Function


Would it be faster with an animated mesh?