Trust me, it has nothing to do with the number of variables you are using.
It obviously isn't the number of cubes you have on-screen because 40 is only 480 polygons.
Almost certainly it is due to the number of collision types you are using. Try reducing that number and I bet you'll see better results.
It obviously isn't the number of cubes you have on-screen because 40 is only 480 polygons.
Almost certainly it is due to the number of collision types you are using. Try reducing that number and I bet you'll see better results.