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

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

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

AppSettings.setFrequency介绍

[英]Set the frequency, also known as refresh rate, for the rendering display.
[中]设置渲染显示的频率(也称为刷新率)。

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

source.setHeight(height);
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

settings.setHeight(useDM.getHeight());
    settings.setBitsPerPixel(useDM.getBitDepth());
    settings.setFrequency(useDM.getRefreshRate());
    settings.setSwapBuffers(true);
    settings.setVSync(true); // allow vsync on this display
  settings.setFrequency(defDev.getDisplayMode().getRefreshRate());
  settings.setDepthBits(24);
  settings.setVSync(true);
settings.setBitsPerPixel(24);     
settings.setFrameRate(0); // never sleep in main loop
settings.setFrequency(VRhardware.getDisplayFrequency());
settings.setFullscreen(false);
settings.setVSync(false); // stop vsyncing on primary monitor!

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

settings.setHeight(useDM.getHeight());
    settings.setBitsPerPixel(useDM.getBitDepth());
    settings.setFrequency(useDM.getRefreshRate());
    settings.setSwapBuffers(true);
    settings.setVSync(true); // allow vsync on this display
if (macOs) {
  settings.setFrequency(defDev.getDisplayMode().getRefreshRate());
  settings.setDepthBits(24);
  settings.setVSync(true);
settings.setBitsPerPixel(32);     
settings.setFrameRate(0);
settings.setFrequency(environment.getVRHardware().getDisplayFrequency());
settings.setFullscreen(false);
settings.setVSync(false); // stop vsyncing on primary monitor!

代码示例来源:origin: info.projectkyoto/mms-engine

source.setHeight(height);
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop

source.setHeight(height);
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);

代码示例来源:origin: tonihele/OpenKeeper

settings.getAppSettings().setFrequency((Integer) refresh.getSelection());
settings.getAppSettings().setFullscreen(fullscreen.isChecked());
settings.getAppSettings().setVSync(vsync.isChecked());

相关文章

AppSettings类方法