本文整理了Java中com.jme3.system.AppSettings.setFrameRate()
方法的一些代码示例,展示了AppSettings.setFrameRate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.setFrameRate()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:setFrameRate
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void main(String[] args) {
TestCameraNode app = new TestCameraNode();
AppSettings s = new AppSettings(true);
s.setFrameRate(100);
app.setSettings(s);
app.start();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
AppSettings settings = new AppSettings(true);
settings.setCustomRenderer(AwtPanelsContext.class);
settings.setFrameRate(60);
app.setSettings(settings);
app.start();
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setAudioRenderer(audioRendererType);
settings.setFrameRate(frameRate);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setHeight(yWin);
settings.setBitsPerPixel(24);
settings.setFrameRate(0); // never sleep in main loop
settings.setFrequency(VRhardware.getDisplayFrequency());
settings.setFullscreen(false);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setHeight(yWin);
settings.setBitsPerPixel(32);
settings.setFrameRate(0);
settings.setFrequency(environment.getVRHardware().getDisplayFrequency());
settings.setFullscreen(false);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setAudioRenderer(audioRendererType);
settings.setFrameRate(frameRate);
代码示例来源:origin: tonihele/OpenKeeper
private Settings(final AppSettings settings) {
// Init the settings
this.settings = settings;
//Default resolution
if (!this.settings.containsKey("Width") || !this.settings.containsKey("Height")) {
this.settings.setResolution(800, 600); // Default resolution
}
File settingsFile = new File(USER_SETTINGS_FILE);
if (settingsFile.exists()) {
try (InputStream is = new FileInputStream(settingsFile)) {
this.settings.load(is);
} catch (IOException ex) {
LOGGER.log(java.util.logging.Level.WARNING, "Settings file failed to load from " + settingsFile + "!", ex);
}
}
this.settings.setFrameRate(Math.max(MAX_FPS, settings.getFrequency()));
// Assing some app level settings
settings.setTitle(TITLE);
settings.setIcons(getApplicationIcons());
}
代码示例来源:origin: tonihele/OpenKeeper
float quality = Settings.getInstance().getSettingFloat(Settings.Setting.RECORDER_QUALITY);
int frameRate = Settings.getInstance().getSettingInteger(Settings.Setting.RECORDER_FPS);
getSettings().setFrameRate(frameRate);
VideoRecorderAppState recorder = new VideoRecorderAppState(quality, frameRate);
String folder = params.get("record");
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport-jmonkey
settings.setFrameRate(30);
代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit
appSettings.setFrameRate(30);
代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit
appSettings.setFrameRate(30);
内容来源于网络,如有侵权,请联系作者删除!