Build 484 vs build 591

Hi. The function below is called inside a enterframe function(gameloop). My game works fine in iPod and iPhone 4 when I use Corona Build 484 but I can not say the same when I use Corona build 591. In Build 591 my game works with lag.

Is there anything wrong with particleRain function?

I hope that my explanation was clear.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local particleRain = function()
 
        local dropRain = display.newImageRect("rain.png", 4, 16)
        local randomRain = math.cos(mRandom(360)) * mRandom(100,200)
        dropRain.isFixedRotation = true
        dropRain.x = 160 + randomRain
        dropRain.y = 0
        local y1 = display.contentHeight 
        gameGroup:insert(dropRain)
        transition.to(dropRain,{y = y1, time = 1000,
                onComplete = function() dropRain:removeSelf() dropRain = nil end })
end
 
local gameloop = function( event )
.
.
.
particleRain()
.
.
.
end
 
Runtime:addEventListener( "enterFrame", gameLoop )

Hello, everyone. Why does my particleRain function not working properly in build 591? It works fine in 484. There is a visible decrease performance on iPhone 4 and iPod 3rd. Can someone help me. Thank you.

See here if you need someone to go through your code with you; http://www.anscamobile.com/corona/support/

Peach :)

views:1632 update:2011/10/22 17:28:16
corona forums © 2003-2011