Android Open Source - playn-perf Perf Test






From Project

Back to project page playn-perf.

License

The source code is released under:

PlayN Perf - performance tests for the PlayN game framework Copyright (c) 2013, Three Rings Design, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modifi...

If you think the Android project playn-perf listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//
// PlayN Performance Tests
// http://github.com/threerings/playn-perf/blob/master/LICENSE
/*from w ww . ja  v  a  2s  .c o m*/
package com.threerings.perf.core;

import playn.core.Game;
import playn.core.util.Clock;
import tripleplay.game.ScreenStack;

public class PerfTest extends Game.Default
{
    public static final ScreenStack stack = new ScreenStack();

    public PerfTest () {
        super(50);
    }

    @Override public void init () {
        stack.push(new TestMenu());
    }

    @Override public void update (int delta) {
        _clock.update(delta);
        stack.update(delta);
    }

    @Override public void paint (float alpha) {
        _clock.paint(alpha);
        stack.paint(_clock);
    }

    protected final Clock.Source _clock = new Clock.Source(50);
}




Java Source Code List

com.threerings.perf.android.PerfTestActivity.java
com.threerings.perf.core.AbstractTest.java
com.threerings.perf.core.Bodies.java
com.threerings.perf.core.BouncingQuads.java
com.threerings.perf.core.CB.java
com.threerings.perf.core.LayerBodies.java
com.threerings.perf.core.ParticleBurst.java
com.threerings.perf.core.PerfTest.java
com.threerings.perf.core.ScrollingQuads.java
com.threerings.perf.core.SurfaceBodies.java
com.threerings.perf.core.TestConfig.java
com.threerings.perf.core.TestMenu.java
com.threerings.perf.html.PerfTestHtml.java
com.threerings.perf.java.PerfTestJava.java