Java Code Examples for com.jme3.system.AppSettings#setVSync()

The following examples show how to use com.jme3.system.AppSettings#setVSync() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestMultipleApplications.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
    final AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(true);
    settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    for (int i=0; i<2; ++i) {
        new Thread() {
            @Override
            public void run() {
                if (currentDeviceIndex == -1) {
                    return;
                }
                TestMultipleApplications app = new TestMultipleApplications();
                app.setSettings(settings);
                app.setShowSettings(false);
                app.start();
            }
        }.start();
    }
}
 
Example 2
Source File: TestInstanceNode.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args){
    TestInstanceNode app = new TestInstanceNode();
    AppSettings settings = new AppSettings(true);
    settings.setVSync(false);
    app.setSettings(settings);
    app.start();
}
 
Example 3
Source File: TestVertexBufferSharing.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args){
    TestVertexBufferSharing app = new TestVertexBufferSharing();
    AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(false);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    app.setSettings(settings);
    app.start(); // start the game
}
 
Example 4
Source File: TestContextSwitching.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public TestContextSwitching() {
    AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(true);
    settings.setWidth(800);
    settings.setHeight(600);
    settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    
    setSettings(settings);
    setShowSettings(false);
}
 
Example 5
Source File: HelloOpenCL.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args){
    HelloOpenCL app = new HelloOpenCL();
    AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(true);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    app.setSettings(settings);
    app.start(); // start the game
}
 
Example 6
Source File: TestOpenCLLibraries.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args){
    TestOpenCLLibraries app = new TestOpenCLLibraries();
    AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(true);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    app.setSettings(settings);
    app.start(); // start the game
}
 
Example 7
Source File: TestWriteToTexture.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args){
    TestWriteToTexture app = new TestWriteToTexture();
    AppSettings settings = new AppSettings(true);
    settings.setOpenCLSupport(true);
    settings.setVSync(false);
    settings.setRenderer(AppSettings.LWJGL_OPENGL2);
    app.setSettings(settings);
    app.start(); // start the game
}
 
Example 8
Source File: TestBatchNodeCluster.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static void main(String[] args) {
    TestBatchNodeCluster app = new TestBatchNodeCluster();
    settingst = new AppSettings(true);
    //settingst.setFrameRate(75);
    settingst.setResolution(640, 480);
    settingst.setVSync(false);
    settingst.setFullscreen(false);
    app.setSettings(settingst);
    app.setShowSettings(false); 
    app.start();
}
 
Example 9
Source File: TestBatchNodeCluster.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public static void main(String[] args) {
    TestBatchNodeCluster app = new TestBatchNodeCluster();
    settingst = new AppSettings(true);
    //settingst.setFrameRate(75);
    settingst.setResolution(640, 480);
    settingst.setVSync(false);
    settingst.setFullscreen(false);
    app.setSettings(settingst);
    app.setShowSettings(false);
    app.start();
}
 
Example 10
Source File: TestCubeCluster.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public static void main(String[] args) {
    TestCubeCluster app = new TestCubeCluster();
    settingst = new AppSettings(true);
    //settingst.setFrameRate(75);
    settingst.setResolution(640, 480);
    settingst.setVSync(false);
    settingst.setFullscreen(false);
    app.setSettings(settingst);
    app.setShowSettings(false);
    app.start();
}