Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Heisst: Du hast das eigentlich Problem nicht gelöst, sondern es lediglich "umgangen" da du nun mit OpenGl wieder schnell genug bist. Auf einem langsameren PC oder Notebook oder wenn mehr Arbeit vorhanden ist, wirst du wieder in das selbe Problem laufen.https://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html hat gesagt.:Note that the Swing timer's task is performed in the event dispatch thread. This means that the task can safely manipulate components, but it also means that the task should execute quickly. If the task might take a while to execute, then consider using a SwingWorker instead of or in addition to the timer. See Concurrency in Swing for instructions about using the SwingWorker class and information on using Swing components in multi-threaded programs.
Das ist eine Frage der Perspektive. Es bedeutet das auf meinem Netbook mit Atom Prozessor die Anwendung jetzt mit aktiviertem Open GL auch unter UBUNTU super läuft. Also aus meiner Sicht ist das Problem gelöst. Würde ich eine grafisches anspruchsvolle Spiel programmieren, würde ich auch hier Ansprüche an das System stellen. Oder auf C oder C++ ausweichen. Aber auch in diesen Fall müsste ich wohl auf Direkt X Open Gl oder ähnliches zurückgreifen müssen.Heisst: Du hast das eigentlich Problem nicht gelöst, sondern es lediglich "umgangen" da du nun mit OpenGl wieder schnell genug bist. Auf einem langsameren PC oder Notebook oder wenn mehr Arbeit vorhanden ist, wirst du wieder in das selbe Problem laufen.
Worker Threads and SwingWorker
When a Swing program needs to execute a long-running task, it usually uses one of the worker threads, also known as the background threads. Each task running on a worker thread is represented by an instance of javax.swing.SwingWorker. SwingWorker itself is an abstract class; you must define a subclass in order to create a SwingWorker object; anonymous inner classes are often useful for creating very simple SwingWorker objects.