mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 07:31:26 +02:00
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:
committed by
Simon Robertshaw
parent
d20c704d88
commit
788b0cd04c
@@ -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
|
||||
|
Reference in New Issue
Block a user