Flickering Java GUI in Ubuntu 14.04
问题 I stumbled upon a problem I cant solve nor can I understand. I'm writing a simple 2D game using Java 1.8.0_31 with java.awt.Canvas on Ubuntu 14.04. The problem is that I get this unbearable flickering(an issue I never had on Windows), to make sure my code is not the problem I wrote a small test program with a moving circle... The test loop: public void run() { long startTime = System.currentTimeMillis(); long tick = 1000; int fps = 0; int upd = 0; double nanoScale = 1000000000.0 / 60; double