windrobin / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

BitmapMaterial writes to a log file every frame if your bitmap is over 2880, a valid size in flash 10. #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a bitmapMaterial with a side larger than 2880
2.
3.

What is the expected output? What do you see instead?
In flash version 10 support for 16,777,215 pixels per bitmap with a maximum
of 8191 pixels in height or width was introduced.  Your BitmapMaterial
class while being able to support bitmaps of this size will show drastic
performance reduction in using any bitmap over the old standard of 2880 in
either height or width.

What version of the product are you using? On what operating system?
Current .swc release with Flex Builder 3 on Vista 32 sp1
building to air 1.5 ( flash player 10 ) flex sdk 3.3

Please provide any additional information below.

I have tracked down the problem to a bitmap size check in the private
function "correctBitmap" inside of the BitmapMaterial Class.  In this
function the height and width of the bitmap are checked and if either is
over 2880 an error message is written to a log file. This function is
called by the "createBitmap" function when the mipmap needs to be
recalculated, which can be as often as every frame. 

Original issue reported on code.google.com by dawso...@gmail.com on 9 Aug 2009 at 12:24