1
我目前正在與Andengine,GLES1一起開發遊戲,並且在我的其中一臺設備上發現它運行非常慢,(大約15 FPS)。爲了改善這一點以及使用SpriteGroup,我已經將背景圖像轉換爲RGB_565。因此,舉例來說,在AndEngine中使用RGB_565作爲背景圖像
mBitmapTextureAtlasBackground = new BitmapTextureAtlas(512,
512,BitmapTextureFormat.RGB_565,TextureOptions.DEFAULT);
mBgRegion = BitmapTextureAtlasTextureRegionFactory
.createFromAsset(mBitmapTextureAtlasBackground, mActivity,
"backgroundgame1.png", 0, 0);
BackgroundSprite = new Sprite(0.0f, 0.0f, mCamera.getWidth(),mCamera.getHeight(), mBgRegion);
然而的圖像是如下,右側的一個是wtih RGB_565,
(第一圖像上的黑色矩形是一個廣告我阻止了!)。 有沒有我省略的東西?我會很樂意爲此提供任何幫助。提前致謝。