title: Increasing JavaFX WebGL Performance
body: <p>I'm working on this browser in JavaFX. However.. When you visit a page that is using WebGL, the page loads but is extremely choppy and basically unusable.</p>
  
  <p>So the question is, how would I increase the performance of a webpage using WebGL so the users can navigate the page smoothly?</p>
  
  <p>Here's my demonstration</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.Group;
  import javafx.scene.Scene;
  import javafx.scene.paint.Color;
  import javafx.scene.web.WebEngine;
  import javafx.scene.web.WebView;
  import javafx.stage.Stage;
  
    public final class App extends Application {
  
    @Override
    public void start(Stage stage) throws Exception {
          Group group = new Group();           
          WebView browser = new WebView();            
          WebEngine engine = browser.getEngine(); 
  
          engine.load("http://rune.tools/");
  
          group.getChildren().add(browser);
  
          Scene scene = new Scene(group, Color.BLACK);
  
          stage.setScene(scene);            
          stage.setTitle("JavaFX WebGL");            
          stage.centerOnScreen();
          stage.sizeToScene();   
          stage.setResizable(false);            
          stage.show();
    }
  
    public static void main(String[] args) {
          launch(args);
    }
  
    }
  </code></pre>