0

スターリングについて学び始めたとき、Nape を見つけました。GotoAndLearn.com で、両方を使用するためのチュートリアルを見つけ、ほぼ同じ原理で独自のテストを行いました。

問題をよりよく理解するために、プロジェクトを github にアップロードしました。

https://github.com/alesys/RolfNapeStarlingTest

私は Flash Builder 4.7 (ベータ版) を使用し、Flash Pro CS6 からスプライト シートをエクスポートし、Starling と Nape 用の最新の SWC、および最新の XCode を使用しています。

私は4つのクラスを持っています:

  1. RolfNapeTest伸びflash.display.Spriteます。メインクラスです。

  2. Assets. テクスチャの埋め込みに使用されます。

  3. Game伸びstarling.display.Spriteます。すべてのうなじのものを処理します。

  4. Char伸びstarling.display.Spriteます。からランダムなテクスチャを表示しAssets、リッスンしstarling.events.TouchEventます。

そのため、私が読んだことの 1 つは、分離された静的クラスにテクスチャを埋め込むようにすることです。だから私はAssetsクラスでこれをしました。

public static function getTexture(spriteName:String):Vector.<Texture>
        {
            if (!atlas)
                atlas = new TextureAtlas(Texture.fromBitmap(new SPRITES()),XML(new XMLSPRITES()));
            return atlas.getTextures(spriteName);
        }

Charクラスも非常に単純です。

package
{
    import nape.geom.Vec2;
    import nape.phys.Body;

    import starling.display.MovieClip;
    import starling.display.Sprite;
    import starling.events.Event;
    import starling.events.TouchEvent;
    import starling.events.TouchPhase;

    public class Char extends Sprite
    {
        private var body:Body;
        public function Char(body:Body)
        {
            super();
            this.body = body;
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
        private function init(e:Event):void
        {
            addChild(new MovieClip(Assets.getTexture((Math.random()>0.5)?Assets.SPRITE_FLAVIA:Assets.SPRITE_MARIANA)));
            pivotX = width>>1;
            pivotY = height>>1;

            addEventListener(TouchEvent.TOUCH, handle_touch);
        }
        private function handle_touch(te:TouchEvent):void
        {
            if ( te.getTouch(this,TouchPhase.BEGAN))
            {
                body.velocity = new Vec2(Math.random()*1000-500,-2000);
            }
        }
    }
}

パラメータとしてインスタンスを受け取り、Bodyテクスチャをロードし、イベントをリッスンし、touchイベントが発生するとBodyの速度が変化します。

さて、うなじを処理するクラスは次のGameとおりです。

package
{
    import nape.geom.Vec2;
    import nape.phys.Body;
    import nape.phys.BodyType;
    import nape.phys.Material;
    import nape.shape.Polygon;
    import nape.space.Space;

    import starling.display.DisplayObject;
    import starling.display.Sprite;
    import starling.events.Event;

    public class Game extends Sprite
    {
        private var space:Space;
        private var count:int;
        public function Game()
        {
            super();
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
        private function init(e:Event):void
        {
            space = new Space(new Vec2(0,3000));

            var walls:Body = new Body(BodyType.STATIC);

            var wall_left:Polygon = new Polygon(Polygon.rect(-20,0,20,stage.stageHeight));
            var wall_right:Polygon = new Polygon(Polygon.rect(stage.stageWidth,0,20,stage.stageHeight));
            var floor:Polygon = new Polygon(Polygon.rect(0,stage.stageHeight,stage.stageWidth,20));

            walls.shapes.add(wall_left);
            walls.shapes.add(wall_right);
            walls.shapes.add(floor);

            walls.space = space;
            count = 0;
            addEventListener(Event.ENTER_FRAME, loop);
        }
        private function loop(e:Event):void
        {
            if ( Math.random()<0.03 && count < 50)
            {
                count++;
                addChar();
            }
            space.step(1/60);
        }

        private function addChar():void
        {

            var body:Body = new Body(BodyType.DYNAMIC,new Vec2(Math.random()*stage.stageWidth,-200));
            body.shapes.add(new Polygon(Polygon.box(50,100),new Material(20)));
            body.graphic = new Char(body);
            body.graphicUpdate = graphicUpdate;
            body.space = space;
            addChild(body.graphic);
        }

        private function graphicUpdate(body:Body):void
        {

            var gra:DisplayObject = body.graphic as DisplayObject;
            gra.x = body.position.x;
            gra.y = body.position.y;
            gra.rotation = body.rotation;
        }
    }
}

ご覧のとおり、とてもまっすぐです。インスタンスを作成し、いくつかの壁を作成し、最後に呼び出しをSpaceリッスンして、新しいインスタンスをランダムに作成します。Event.ENTER_FRAMESpace.step()Char

Charこれで、クラスの 50 個のインスタンスすべてを作成し、Objectそれらをプールする必要があったことを理解しました。しかし、これはインスタンス化時のパフォーマンスにのみ影響することも理解しています。しかし、おそらくそれは次のコミットで最初に変更することになるでしょう。

そのため、ブラウザと Air でテストしたところ、問題なく動作しました。期待どおりに 60fps から低下することはありません。

次に、iPhone4Sで試してみました。約 30 のインスタンスに到達するまで、すべてが 60 fps でスムーズに進みます。その後、30 fps に達するまで非常に激しく低下し始めます。

また、これを追加する必要があります。何らかの理由で、Nape SWC から多くの警告が表示されます。

Description Resource    Path    Location    Type
The definition getClass.T depended on by Type in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition getClass.T depended on by Type in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by flash.Boot in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by flash.Boot in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.CbTypeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.CbTypeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.ListenerList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.ListenerList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.PreListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.callbacks.PreListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.constraint.Constraint in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.constraint.Constraint in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.constraint.ConstraintList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.constraint.ConstraintList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.ArbiterList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.ArbiterList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.ContactList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.ContactList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.InteractionGroupList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.dynamics.InteractionGroupList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.geom.GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.geom.GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.geom.GeomPolyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.geom.GeomPolyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.geom.RayResultList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.geom.RayResultList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.geom.Vec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.geom.Vec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.phys.BodyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.phys.BodyList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.phys.CompoundList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.phys.CompoundList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.phys.InteractorList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.phys.InteractorList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.shape.EdgeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.shape.EdgeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.shape.ShapeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.shape.ShapeList in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by nape.space.Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by nape.space.Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by StringTools in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by StringTools in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_Callback in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_Callback in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_InteractionListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_InteractionListener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_Listener in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_OptionType in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.callbacks.ZPP_OptionType in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_AABB in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_AABB in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Collide in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Collide in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_GeomPoly in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_GeomVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_GeomVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Mat23 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Mat23 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Ray in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Ray in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Vec2 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Vec2 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Vec3 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.geom.ZPP_Vec3 in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.phys.ZPP_Compound in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.phys.ZPP_Compound in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.phys.ZPP_Interactor in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.phys.ZPP_Interactor in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.shape.ZPP_Polygon in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.shape.ZPP_Polygon in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_DynAABBPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_DynAABBPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_Space in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_SweepPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.space.ZPP_SweepPhase in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Debug in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Debug in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_MixVec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_MixVec2List in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_Body in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_Body in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found  RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSet in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSet in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSetPair in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_CbSetPair in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_PartitionVertex in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_PartitionVertex in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleEvent in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleEvent in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found   RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleSeg in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleSeg in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found RolfNapeTest        line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    NapeTest2       line 0  Flex Problem
The definition Null.T depended on by zpp_nape.util.ZPP_Set_ZPP_SimpleVert in the SWC /Users/rolf/Documents/AS3 libs/Nape/swc/release_nape.swc could not be found    RolfNapeTest        line 0  Flex Problem

問題は、Objectすべてのインスタンスをプールする以外Charに、この FPS の低下を引き起こしている可能性のある何かが他にないのでしょうか? SWC からのこれらの警告メッセージのすべてがこれに関係しているのかもしれませんが、Air や Browser でこれが起こらないのはなぜですか?

それとも、Box2DFlashAS3 に切り替える必要がありますか?

読んでくれてありがとう。

4

0 に答える 0