diff --git a/core/src/main/java/com/github/tommyettinger/sonorant/ShaderNoise.java b/core/src/main/java/com/github/tommyettinger/sonorant/ShaderNoise.java index 23b8ae6..661c135 100644 --- a/core/src/main/java/com/github/tommyettinger/sonorant/ShaderNoise.java +++ b/core/src/main/java/com/github/tommyettinger/sonorant/ShaderNoise.java @@ -57,14 +57,14 @@ public ShaderNoise(Clipboard clippy) { Gdx.app.exit(); return; } - shaderRidged = new ShaderProgram(Gdx.files.internal("foam_vertex.glsl"), Gdx.files.internal("ana_fragment.glsl")); -// shaderRidged = new ShaderProgram(Gdx.files.internal("foam_vertex.glsl"), Gdx.files.internal("sonorant_fragment_ridged.glsl")); +// shaderRidged = new ShaderProgram(Gdx.files.internal("foam_vertex.glsl"), Gdx.files.internal("ana_fragment.glsl")); + shaderRidged = new ShaderProgram(Gdx.files.internal("foam_vertex.glsl"), Gdx.files.internal("sonorant_fragment_ridged.glsl")); if (!shaderRidged.isCompiled()) { Gdx.app.error("Shader", "error compiling shaderRidged:\n" + shaderRidged.getLog()); Gdx.app.exit(); return; } - shader = shaderRidged; + shader = shaderStandard; batch.setShader(shader); // System.nanoTime() is supported by GWT 2.10.0 . diff --git a/gradle.properties b/gradle.properties index c3189f1..882b70e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,3 +22,4 @@ gdxVersion=1.12.1 graalHelperVersion=2.0.1 enableGraalNative=true graalvmVersion=22.3.1 +enableDebug=true diff --git a/lwjgl3/build.gradle b/lwjgl3/build.gradle index d2371fb..9b6d1f1 100644 --- a/lwjgl3/build.gradle +++ b/lwjgl3/build.gradle @@ -35,6 +35,13 @@ run { doNotTrackState("no changey changey") } +if(enableDebug == 'true') { + tasks.withType(JavaCompile).configureEach { + options.debug = true + options.compilerArgs += ["-g"] + } +} + jar { // sets the name of the .jar file this produces to the name of the game or app. archiveFileName.set("${appName}-${version}.jar") diff --git a/lwjgl3/src/main/java/com/github/tommyettinger/lwjgl3/Lwjgl3Launcher.java b/lwjgl3/src/main/java/com/github/tommyettinger/lwjgl3/Lwjgl3Launcher.java index 7b8d35d..23ece09 100644 --- a/lwjgl3/src/main/java/com/github/tommyettinger/lwjgl3/Lwjgl3Launcher.java +++ b/lwjgl3/src/main/java/com/github/tommyettinger/lwjgl3/Lwjgl3Launcher.java @@ -21,12 +21,10 @@ public static void main(String[] args) { private static Lwjgl3ApplicationConfiguration getDefaultConfiguration() { Lwjgl3ApplicationConfiguration configuration = new Lwjgl3ApplicationConfiguration(); configuration.setTitle("Noise"); - configuration.useVsync(true); - //// Limits FPS to the refresh rate of the currently active monitor. - configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate); - //// If you remove the above line and set Vsync to false, you can get unlimited FPS, which can be - //// useful for testing performance, but can also be very stressful to some hardware. - //// You may also need to configure GPU drivers to fully disable Vsync; this can cause screen tearing. + configuration.useVsync(false); + configuration.setForegroundFPS(0); +// configuration.useVsync(true); +// configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate); configuration.setWindowedMode(width, height); configuration.setWindowIcon("libgdx128.png", "libgdx64.png", "libgdx32.png", "libgdx16.png"); return configuration;