Calculate Newtonian gravity using fast Fourier transforms

About 16% slower for one cell changing, same speed for 6 cells changing,
and several hundred times faster for whole screen changing.
This commit is contained in:
jacksonmj
2011-07-15 05:16:11 +08:00
committed by Simon Robertshaw
parent d20c704d88
commit 788b0cd04c
5 changed files with 175 additions and 4 deletions

View File

@@ -41,6 +41,11 @@ void update_airh(void);
void update_grav(void);
#ifdef GRAVFFT
void grav_fft_init();
void grav_fft_cleanup();
#endif
void update_air(void);
#endif