11011110110011011001100110011001000110011001100111010001011

August 23, 2008

Memory-for-speed,cache the bone anim

Filed under: Programming

Cost too much memory!emoticon

the player actor:

[frames]  [cache interval]   [vtx count]  [xyz]  [short]
 10000   /        32           *    340       *  3    *  2 = 637500  = 622.5k

one vertex cost:

10000   /        32           *      1         *  3    *  2 = 1875     = 1.83k

 

emoticonless vertices & polygons….. less frames

render 2d image with 3d polygon

Filed under: Programming

If you mix 2d & 3d rendering on Hardware Accelerate phone, it will cut down the fps a lot.
On my test on Nokia N82, it costs nearly 10 fps after drawing a 2d fullscreen image.
So I use a 3d plane near the camera instead.

XXXXXXXXXXXXX图片删了XXXXXXXXXXXXXXXXXXXX