Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

The problem with multiplication by a fractional number (iphone 3gs)

$
0
0

Hi

 

I have aloopin the event handlerenterframe.Inside the loop —the multiplicationbya fractional number.

 

for (var i:int = 0; i < 200; i++){

var n:Number = 10 * 0.12;

}


As a result,on theiphone3gsveryfastmemoryis wasted.About 20KBper second.After sometimethe memoryis resetand starts againto grow.Each timeyou resetFPS jumps,it is not suitablefor my game.Whenmultiplied byan integer, thenthere is no problem.

 


Does anyonehad a similar problem? Is it possible tooptimizethis operation?

 

P. S. I try Air 2.6, 2.7 and 3. This is a problemeverywhere.


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>