com.jme3.system.AppSettings.setFrameRate()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中com.jme3.system.AppSettings.setFrameRate()方法的一些代码示例,展示了AppSettings.setFrameRate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.setFrameRate()方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:setFrameRate

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);

相关文章

AppSettings类方法