move thread into app

This commit is contained in:
sillysagiri 2024-10-14 23:09:58 +07:00
parent 4d3863ac70
commit f9f1a85eff
2 changed files with 1054 additions and 1024 deletions

View File

@ -31,9 +31,13 @@ public class DotHack extends MIDlet implements Runnable {
while (true) {
try
{
sagiri.time_begin = System.currentTimeMillis();
game.repaint();
game.serviceRepaints();
Thread.sleep(1000/sagiri.fps);
sagiri.time_delta = System.currentTimeMillis() - sagiri.time_begin;
}
catch (Exception e)
{

File diff suppressed because it is too large Load Diff