Asynchronous thread for gravity processing

This commit is contained in:
Simon Robertshaw
2011-04-24 17:49:33 +01:00
parent db427e4cdd
commit 3acf9aae2a
3 changed files with 65 additions and 21 deletions

View File

@@ -2,11 +2,15 @@
#define AIR_H
#include "defines.h"
extern float ogravmap[YRES/CELL][XRES/CELL];
extern float gravmap[YRES/CELL][XRES/CELL];
extern float gravmap[YRES/CELL][XRES/CELL]; //Maps to be used by the main thread
extern float gravx[YRES/CELL][XRES/CELL];
extern float gravy[YRES/CELL][XRES/CELL];
extern float th_ogravmap[YRES/CELL][XRES/CELL]; // Maps to be processed by the gravity thread
extern float th_gravmap[YRES/CELL][XRES/CELL];
extern float th_gravx[YRES/CELL][XRES/CELL];
extern float th_gravy[YRES/CELL][XRES/CELL];
extern float vx[YRES/CELL][XRES/CELL], ovx[YRES/CELL][XRES/CELL];
extern float vy[YRES/CELL][XRES/CELL], ovy[YRES/CELL][XRES/CELL];
extern float pv[YRES/CELL][XRES/CELL], opv[YRES/CELL][XRES/CELL];