Revision b6f7c7f2
Added by Leszek Koltunski about 3 years ago
- ID b6f7c7f2d18f73e783a704491325378bf67e696d
- Parent 09784afd
src/main/java/org/distorted/main/RubikRenderer.java | ||
---|---|---|
45 | 45 |
private final Fps mFPS; |
46 | 46 |
private boolean mErrorShown; |
47 | 47 |
|
48 |
static boolean mStartDebug = false; |
|
49 |
|
|
48 | 50 |
private static class Fps |
49 | 51 |
{ |
50 | 52 |
private static final int NUM_FRAMES = 100; |
... | ... | |
105 | 107 |
mFPS.onRender(time); |
106 | 108 |
mView.getPreRender().preRender(); |
107 | 109 |
mScreen.render(time); |
110 |
|
|
111 |
if( mStartDebug ) |
|
112 |
{ |
|
113 |
mStartDebug = false; |
|
114 |
RubikDebug debug = RubikDebug.getInstance(); |
|
115 |
debug.onFirstDraw(); |
|
116 |
} |
|
108 | 117 |
} |
109 | 118 |
|
110 | 119 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Improve the test - now it will hopefully not crash on slow devices (part 2)