1 decade ago by SlotGamer
I'm looking to speed up my rendering issues and I just got done watching a google rendering optimization video:
https://www.youtube.com/watch?feature=player_embedded&v=n8ep4leoN9A
which makes me realize how important layers are for letting the GPU do the heavy lifting. Now, I wonder if the reel symbols in my slot game should be put into individual layers and I should just move these layers instead of calling drawImage(x,y) on each of these symbols with a new position every frame?
Does ImpactJS have the ability to do this per image? Or maybe it would be better for me to create a new layer in ImpactJS and draw my sprites onto this layer first and then scroll this layer in back of the slot machine layer?
I know ImpactJS has the layer concept for scrolling backgrounds and maybe this is what I need to hook into when I draw my sprite images on it at the beginning of each spin?
Maybe I just need to create another canvas and render these sprite images to this other canvas and somehow make this canvas a new layer scrolling in the background?
Any help in this area would be greatly appreciated!
https://www.youtube.com/watch?feature=player_embedded&v=n8ep4leoN9A
which makes me realize how important layers are for letting the GPU do the heavy lifting. Now, I wonder if the reel symbols in my slot game should be put into individual layers and I should just move these layers instead of calling drawImage(x,y) on each of these symbols with a new position every frame?
Does ImpactJS have the ability to do this per image? Or maybe it would be better for me to create a new layer in ImpactJS and draw my sprites onto this layer first and then scroll this layer in back of the slot machine layer?
I know ImpactJS has the layer concept for scrolling backgrounds and maybe this is what I need to hook into when I draw my sprite images on it at the beginning of each spin?
Maybe I just need to create another canvas and render these sprite images to this other canvas and somehow make this canvas a new layer scrolling in the background?
Any help in this area would be greatly appreciated!