Log In  

5

Cart [#37437#] | Copy | Code | 2017-02-13 | Link
5
A fast single-pixel particle system using bitwise operations and constant-time addition and removal. The top part of the program is the reusable particle system. It features acceleration, velocity, particle colors, and particle lifetimes. Please reuse, but please also keep my name attached to the code.

The bottom part is the waterfall demo and some generic particle emitter code.

You can save a few more cycles if you hardcode the gravity constant. Otherwise I believe that this is close to optimal.

More information at my github

particle fast bitwise


P#37439 2017-02-13 23:08

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:
Generated 2017-03-23 20:10 | 0.127s | 1572k