//
// PlayN Performance Tests
// http://github.com/threerings/playn-perf/blob/master/LICENSE

package com.threerings.perf.core;

import playn.core.Game;
import static playn.core.PlayN.*;

import tripleplay.game.ScreenStack;

public class PerfTest implements Game
{
    public static final ScreenStack stack = new ScreenStack();

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

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

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

    @Override public int updateRate () {
        return 30;
    }
}

//
// PlayN Performance Tests
// http://github.com/threerings/playn-perf/blob/master/LICENSE

package com.threerings.perf.core;

import playn.core.Game;
import static playn.core.PlayN.*;

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) {
        stack.update(delta);
    }

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

Update to use Game.Default.