I am trying to create an array to store the values of some curve. What I have is this
For loop in 1:10000
Set Array.At(loopindex) = f(loopindex)
f is some mathematical function.
This is done at the start of layout, and I notice a lag (around 0.5 second) switching between layout. The game then runs at 60 frames per second, but I am just wondering if I can do something smarter so that user can experience a smoother transition.