I have some code where I've been using collision layers for about 200 objects, however I has thus far been using the all-layers mode.
I just turned on collision layer masks which resulted in a huge delay (like longer than a second) in screen updates. For instance, changing this:
CollideImage hex_water,xpos,ypos,0,0,1
to this:
CollideImage hex_water,xpos,ypos,0,1,1
Is when I start having problems.
Once I get about 20 images that are masked, the slow down starts to get noticable on a 2.4ghz machine with a solid video card.
Anyhow, I wanted to make sure that this was normal behavior. I had not anticipated such a noticable slow-down in performance. I can hash it out pretty easily, I think, but I just wanted to make sure that this would be normal given the number of images that I am checking at a pixel level.
Tim
I just turned on collision layer masks which resulted in a huge delay (like longer than a second) in screen updates. For instance, changing this:
CollideImage hex_water,xpos,ypos,0,0,1
to this:
CollideImage hex_water,xpos,ypos,0,1,1
Is when I start having problems.
Once I get about 20 images that are masked, the slow down starts to get noticable on a 2.4ghz machine with a solid video card.
Anyhow, I wanted to make sure that this was normal behavior. I had not anticipated such a noticable slow-down in performance. I can hash it out pretty easily, I think, but I just wanted to make sure that this would be normal given the number of images that I am checking at a pixel level.
Tim