Greetings, I’m experimenting around with the ‘generator.sunbeams’ effect.
I noticed that beyond a certain size, it’ll slowdown the framerate by a lot (from 60fps to 5-10fps).
However, via simulator on same simulated device, there is no slowdown to framerate- it only occurs when I’m testing on the iOS device ( my iPhone 5).
Code: (5 FPS on device, 60 fps on simulator)
local sunShine = display.newRect( display.contentWidth/2, display.contentHeight - 700, display.contentWidth, display.contentHeight ) sunShine.fill.effect = "generator.sunbeams" sunShine.fill.effect.aspectRatio = ( sunShine.width / sunShine.height )
Now if I change the bold parts to this code:
display.contentWidth / 4, display.contentHeight / 4
Then there is no slow down at all, on actual iOS device or in Simulator device.
Is this effect really that Graphics intensive? Why does it only affect the device but not the Simulator when I’m testing? I’m using a CoronaSDK Pro release from a couple months back. I figured, if anything, the Simulator would be slowing down and not when it’s on iOS device but strangely it’s just the opposite.
Am I doing something wrong? Thanks
<<Edit - forgot to mention, I just updated my iPhone5 to the latest iOS 8.2>>