Skip to content
Snippets Groups Projects
Commit 4e818c66 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

lab02 - fix

parent e002db0c
Branches
No related merge requests found
......@@ -52,8 +52,8 @@ public class App extends Application {
private void drawScene() {
//graphic context is used for a painting
GraphicsContext gc = canvas.getGraphicsContext2D();
int timeout = 200;
while (Routines.isEndOfThreadRequestedByJavaVM()) {
int timeout = 10;
while (!Routines.isEndOfThreadRequestedByJavaVM()) {
Routines.sleep(timeout);
double deltaT = timeout / 1000.;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment