Hi,
I’ve found something which I cannot explain.
With a blank main.lua file and this code, my high end PC, both in simulator and after building a desktop app, jumps from 0 to around 15% CPU use. It doen’t matter if the emitter is started or stopped. It is enough that one has been created for this to happen.
If the same happens on mobile devices, I would be very concerned to use particle effects at all.
Anyone know what this is?
Thanks in advance!
Anaqim
local emitterParams = {
startColorAlpha = 1,
startParticleSizeVariance = 53.47,
startColorGreen = 0.3031555,
yCoordFlipped = -1,
blendFuncSource = 770,
rotatePerSecondVariance = 153.95,
particleLifespan = 0.7237,
tangentialAcceleration = -144.74,
finishColorBlue = 0.3699196,
finishColorGreen = 0.5443883,
blendFuncDestination = 1,
startParticleSize = 50.95,
startColorRed = 0.8373094,
textureFileName = “x.png”,
startColorVarianceAlpha = 1,
maxParticles = 256,
finishParticleSize = 64,
duration = -1,
finishColorRed = 1,
maxRadiusVariance = 72.63,
finishParticleSizeVariance = 64,
gravityy = -671.05,
speedVariance = 90.79,
tangentialAccelVariance = -92.11,
angleVariance = -142.62,
angle = -244.11
}
local emitter=display.newEmitter(emitterParams)
emitter.x=500
emitter.y=500