FPS drop with one huge Plane

Software: Away3D 4.x

JaykopX, Newbie
Posted: 03 March 2015 05:51 PM   Total Posts: 13

Hi!
i create one big plane for my floor in the level, but it drops my fps from 60 to 30. What did i do wrong?

private function initPlaneGeometry():void { 
   floor 
= new Mesh(new PlaneGeometry(1000010000));
   var 
planeTextureAsset:IAsset AssetLibrary.getAsset(FilePaths.createFullTextureFilePath(FileNames.Hexagon_Tiling));
   
   
floor.material= new TextureMaterial(Cast.bitmapTexture(planeTextureAsset));
   
floor.material.repeat true;
   
floor.geometry.scaleUV(4,4);
   
UVScaleOfPlane = new Point(38.422.2);
   
floor.geometry.scaleUV(UVScaleOfPlane.xUVScaleOfPlane.y);
   
   
floor.x=183;
   
floor.z=-117;
   
floor.= -0.1;
   
floor.material.repeat=true;
   
   
floor.material.lightPicker = new StaticLightPicker([editorCamera.flashLight]);
view.scene.addChild(floor);
  
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X