chrisnorth / planckapps

Web apps for Planck-related stuff
http://chrisnorth.github.io/planckapps/Simulator/
13 stars 7 forks source link

Sky realisation #1

Closed slowe closed 11 years ago

slowe commented 11 years ago

I've added in code to do a rough realisation of the sky for the given power spectrum. This is rough because it uses the sparsely populated power spectrum curve and does linear interpolation between the points. I do this because polling the curve created by Raphael is too slow as is downloading the full curve at each point when dragging the sliders. I think this approximate sky may be acceptable as the differences may be too subtle to see. In FF on MacBook Pro it takes ~150ms to generate (i.e. make a 2D version of the power spectrum, multiply and FFT back to real space). Is it still too laggy? Having tried some subtle differences in the code, I'm not sure I can optimize the time much more.

slowe commented 11 years ago

Chris says it isn't too laggy. It is apparently a little laggy on a iPhone 4. On an HTC Android it is a bit laggy but may be the jQuery slider bars with the touch event added.