lastFrameTime = time;\r
mean.addValue(deltaTime); \r
\r
- synchronized (Gdx.input) {\r
- synchronized (synch) {\r
- if (running) {\r
- app.listener.render();\r
- }\r
-\r
- if (pause) {\r
- app.listener.pause();\r
- pause = false;\r
- }\r
+ synchronized (synch) {\r
+ if (running) {\r
+ app.listener.render();\r
+ }\r
\r
- if (resume) {\r
- app.listener.resume();\r
- resume = false;\r
- running = true;\r
- }\r
+ if (pause) {\r
+ app.listener.pause();\r
+ pause = false;\r
+ }\r
\r
- if (destroy) {\r
- app.listener.dispose();\r
- destroy = false;\r
- }\r
+ if (resume) {\r
+ app.listener.resume();\r
+ resume = false;\r
+ running = true;\r
}\r
\r
- Gdx.input.processEvents(null);\r
+ if (destroy) {\r
+ app.listener.dispose();\r
+ destroy = false;\r
+ }\r
}\r
+ Gdx.input.processEvents(null); \r
\r
if (time - frameStart > 1000000000) {\r
fps = frames;\r