move thread into app
This commit is contained in:
parent
4d3863ac70
commit
f9f1a85eff
@ -31,9 +31,13 @@ public class DotHack extends MIDlet implements Runnable {
|
|||||||
while (true) {
|
while (true) {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
sagiri.time_begin = System.currentTimeMillis();
|
||||||
|
|
||||||
game.repaint();
|
game.repaint();
|
||||||
game.serviceRepaints();
|
game.serviceRepaints();
|
||||||
Thread.sleep(1000/sagiri.fps);
|
Thread.sleep(1000/sagiri.fps);
|
||||||
|
|
||||||
|
sagiri.time_delta = System.currentTimeMillis() - sagiri.time_begin;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user