ios4 - Instructions per second for iPhone -


this bit of generic question. working on ios cocoa-2d game involves complex path finding algorithms. game turn based. before each user's turn calculate possible paths. involves running lot of data manipulation commands , allocate , releasing simple data objects (no i/o) guessing million instructions required calculate paths each turn. iphone 3gs, 4 , 4g perform @ fraction of second, assuming game using single thread.

in general how many instructions per second can achieved within game. looking guesstimate high level figure.

this depends on type of "instructions" used in algorithm or calculation, how scheduled compiler, , how count them.

in extremely rough , coarse terms, arm cpus used apple can issue on order of 1 integer instruction per clock cycle, , arm processor cores used in ios devices reportedly range in clock speed 400 mhz 1 ghz. high ratio of floating point, multiply or divide instructions or cache misses may change actual instruction issue , retirement rate.

but best way accurate estimate compile , benchmark actual code on target ios device.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -