Skip to content

Commit 1bf288b

Browse files
committed
Direct rendering is now the default on windows
1 parent 607c5a3 commit 1bf288b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/java/ml/sakii/factoryisland/Config.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public static void save(){
5656
}
5757

5858
public static void load() {
59+
boolean win = System.getProperty("os.name").toLowerCase().contains("win");
60+
5961
renderDistance = getInt("renderDistance", 128);
6062
sensitivity = getInt("sensitivity", 5);
6163
useTextures = getBoolean("useTextures", false);
@@ -67,7 +69,7 @@ public static void load() {
6769
creative=getBoolean("creative", true);
6870
selectedMap=get("selectedMap", "");
6971
brightness=7;
70-
renderMethod = RenderMethod.values()[getInt("renderMethod", 1)];
72+
renderMethod = RenderMethod.values()[getInt("renderMethod", win?2:1)];
7173
targetMarkerType = TargetMarkerType.values()[getInt("targetMarkerType", 0)];
7274
ambientOcclusion = getBoolean("ambientOcclusion", true);
7375
zoom=FOVToZoom(FOV);

src/main/java/ml/sakii/factoryisland/screens/SettingsGUI.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void componentShown( ComponentEvent e ) {
249249
l7.setForeground(Color.WHITE);
250250
add(l7);
251251

252-
JLabel l8 = new JLabel("<html><body align='right'>Buffered rendering is recommended for small resolutions.<br>Volatile should be good for everything else</body></html>");
252+
JLabel l8 = new JLabel("<html><body align='right'>Buffered rendering is recommended only for small resolutions.<br>You cannot use the resolution slider in Direct mode.</body></html>");
253253
l8.setLocation(textureButton.getX()-500-EntrySpacing, renderMethodButton.getY());
254254
l8.setSize(500, EntryHeight);
255255
l8.setHorizontalAlignment(SwingConstants.RIGHT);
@@ -370,6 +370,7 @@ private void updateButtons() {
370370
}
371371

372372
private String[] getButtonLabels() {
373+
boolean win = System.getProperty("os.name").toLowerCase().contains("win");
373374
return new String[] {
374375
"Textures: " + (useTextures?"ON":"OFF"),
375376
"Show Fog: " + (fogEnabled?"ON":"OFF"),
@@ -381,8 +382,8 @@ private String[] getButtonLabels() {
381382
"Ambient Occlusion: " + (ambientOcclusion?"ON":"OFF"),
382383
"Rendering Method: " + switch(renderMethod) {
383384
case BUFFERED -> "BUFFERED";
384-
case VOLATILE -> "VOLATILE (default)";
385-
case DIRECT -> "DIRECT";
385+
case VOLATILE -> "VOLATILE"+(!win?" (default)":"");
386+
case DIRECT -> "DIRECT"+(win?" (default)":"");
386387
}
387388

388389
};

0 commit comments

Comments
 (0)