Back to project page playn-perf.
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.
// // 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); }