Tuesday, 2 October 2012

Pixel Bender is the Bomb

Today I showed Ben(the tutor) the code that we had so far and he said that it was much to slow mostly due to the fluid solver.  He suggested looking up pixel bender fluid sims and using a shader to do the calculations.  The first example we found was a lot more complex than the fluid solver I had written in flash but ran substantially faster than my code.  So now I am moving the code to pixel bender.  Also Ben suggested I change the collision code so that the collision function only goes through all the sprites in the same cell rather than the entire board.  Doing both of these things should increase the speed of the game phenomenally, making the game nicer to look at.

No comments:

Post a Comment