[GREENFOOT-75] Greenfoot.delay not working on Linux
Using Greenfoot.delay on my Linux system causes problems with the update of the UI. Even though repaint requests are issued, the WorldCanvas never updates the graphics. Neither is the rest of the Greenfoot UI. Looks like the Swing event thread never gets a chance to run.
Works fine on Mac OS. Haven't tried it on Windows yet.
When using the Greenfoot.delay method, the Simulation will never do any delays itself because too much time has already passed. Inserting a Thread.yeild() after every simulation cycle seems to fix it, but this will possibly slow down the animation speed on other systems. Maybe another solution should be found.
Should also be tested on different Linux systems.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 1.3.0