June 2013
Beginner
352 pages
9h 5m
English
You can let your users choose video settings, or you can predefine settings that you recommend.
Try the following example:
public static void main(String[] args) {
AppSettings settings = new AppSettings(true);
settings.setVSync(true);
settings.setFrequency(60);
settings.setFramerate(30);
settings.setSamples(4);
SettingsTest app = new SettingsTest();
app.setShowSettings(false); // skip default dialog
app.setSettings(settings);
app.start();
}When you run your sample application with these video settings, you should notice softer edges, and less CPU/GPU usage.
To improve video quality, consider activating vertical synchronization (vsync). Vertical synchronization prevents screen tearing—an ...
Read now
Unlock full access