Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
DedeHai committed Mar 23, 2024
1 parent 35c2157 commit 500b847
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wled00/FXparticleSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@

//particle dimensions (subpixel division)
#define PS_P_RADIUS 64 //subpixel size, each pixel is divided by this for particle movement, if this value is changed, also change the shift defines (next two lines)
#define PS_P_HALFRADIUS 32
#define PS_P_RADIUS_SHIFT 6 // shift for RADIUS
#define PS_P_SURFACE 12 // shift: 2^PS_P_SURFACE = (PS_P_RADIUS)^2
#define PS_P_HARDRADIUS 80 //hard surface radius of a particle, used for collision detection proximity



//todo: can add bitfields to add in more stuff, but accessing bitfields is slower than direct memory access!
//flags as bitfields is still very fast to access.
//struct for a single particle
typedef struct {
int16_t x; //x position in particle system
Expand Down

0 comments on commit 500b847

Please sign in to comment.