本文整理了Java中com.jme3.system.AppSettings.getFrameRate()
方法的一些代码示例,展示了AppSettings.getFrameRate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.getFrameRate()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:getFrameRate
[英]Get the framerate.
[中]获取帧率。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void restart() {
frameRate = settings.getFrameRate();
// TODO: Handle other cases, like change of pixel format, etc.
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
protected void startGLCanvas() {
frameRate = settings.getFrameRate();
super.startGLCanvas();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void setSettings(AppSettings settings) {
this.settings.copyFrom(settings);
if (androidInput != null) {
androidInput.loadSettings(settings);
}
if (settings.getFrameRate() > 0) {
minFrameDuration = (long)(1000d / (double)settings.getFrameRate()); // ms
logger.log(Level.FINE, "Setting min tpf: {0}ms", minFrameDuration);
} else {
minFrameDuration = 0;
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public void setSettings(AppSettings settings) {
this.settings.copyFrom(settings);
frameRate = settings.getFrameRate();
if (frameRate <= 0)
frameRate = 60; // use default update rate.
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
protected void startGLCanvas() {
frameRate = settings.getFrameRate();
super.startGLCanvas();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
protected void runLoop(){
if (!created.get()) {
throw new IllegalStateException();
}
listener.update();
checkGLError();
renderer.postFrame();
int frameRate = settings.getFrameRate();
if (frameRate >= 1) {
//FIXME
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
if (frameRateLimit != getSettings().getFrameRate()) {
setFrameRateLimit(getSettings().getFrameRate());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
if (frameRateLimit != getSettings().getFrameRate()) {
setFrameRateLimit(getSettings().getFrameRate());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
protected void runLoop(){
if (!created.get()) {
throw new IllegalStateException();
}
if (pbuffer.isBufferLost()) {
pbuffer.destroy();
try {
pbuffer = new Pbuffer(width, height, pixelFormat, null);
pbuffer.makeCurrent();
// Context MUST be reset here to avoid invalid objects!
renderer.invalidateState();
} catch (LWJGLException ex) {
listener.handleError("Failed to restore pbuffer content", ex);
}
}
listener.update();
assert checkGLError();
renderer.postFrame();
// Need to flush GL commands
// to see any result on the pbuffer's front buffer.
GL11.glFlush();
int frameRate = settings.getFrameRate();
if (frameRate >= 1) {
Display.sync(frameRate);
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
frameRate = settings.getFrameRate();
allowSwapBuffers = settings.isSwapBuffers();
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.useStereo3D());
frameRate = settings.getFrameRate();
allowSwapBuffers = settings.isSwapBuffers();
logger.log(Level.FINE, "Selected display mode: {0}", displayMode);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
@Override
public void restart() {
frameRate = settings.getFrameRate();
// TODO: Handle other cases, like change of pixel format, etc.
}
代码示例来源:origin: org.jmonkeyengine/jme3-jogl
@Override
protected void startGLCanvas() {
frameRate = settings.getFrameRate();
super.startGLCanvas();
}
代码示例来源:origin: info.projectkyoto/mms-engine
public void setSettings(AppSettings settings) {
this.settings.copyFrom(settings);
frameRate = settings.getFrameRate();
if (frameRate <= 0)
frameRate = 60; // use default update rate.
}
代码示例来源:origin: org.jmonkeyengine/jme3-jogl
@Override
protected void startGLCanvas() {
frameRate = settings.getFrameRate();
super.startGLCanvas();
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
public void setSettings(AppSettings settings) {
this.settings.copyFrom(settings);
frameRate = settings.getFrameRate();
if (frameRate <= 0)
frameRate = 60; // use default update rate.
}
代码示例来源:origin: org.jmonkeyengine/jme3-jogl
protected void runLoop(){
if (!created.get()) {
throw new IllegalStateException();
}
listener.update();
checkGLError();
renderer.postFrame();
int frameRate = settings.getFrameRate();
if (frameRate >= 1) {
//FIXME
}
}
代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3
if (frameRateLimit != getSettings().getFrameRate()) {
setFrameRateLimit(getSettings().getFrameRate());
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
protected void runLoop(){
if (!created.get()) {
throw new IllegalStateException();
}
if (pbuffer.isBufferLost()) {
pbuffer.destroy();
try {
pbuffer = new Pbuffer(width, height, pixelFormat, null);
pbuffer.makeCurrent();
// Context MUST be reset here to avoid invalid objects!
renderer.invalidateState();
} catch (LWJGLException ex) {
listener.handleError("Failed to restore pbuffer content", ex);
}
}
listener.update();
checkGLError();
renderer.postFrame();
// Need to flush GL commands
// to see any result on the pbuffer's front buffer.
GL11.glFlush();
int frameRate = settings.getFrameRate();
if (frameRate >= 1) {
Display.sync(frameRate);
}
}
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
frameRate = settings.getFrameRate();
allowSwapBuffers = settings.isSwapBuffers();
内容来源于网络,如有侵权,请联系作者删除!