本文整理了Java中com.jme3.renderer.Renderer.getStatistics
方法的一些代码示例,展示了Renderer.getStatistics
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Renderer.getStatistics
方法的具体详情如下:
包路径:com.jme3.renderer.Renderer
类名称:Renderer
方法名:getStatistics
[英]The statistics allow tracking of how data per frame, such as number of objects rendered, number of triangles, etc. These are updated when the Renderer's methods are used, make sure to call Statistics#clearFrame() at the appropriate time to get accurate info per frame.
[中]统计信息允许跟踪每帧数据的方式,例如渲染对象的数量、三角形的数量等。这些信息在使用渲染器的方法时会更新,请确保在适当的时间调用统计信息#clearFrame(),以获得每帧的准确信息。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public void render(RenderManager rm) {
super.render(rm);
rm.getRenderer().getStatistics().clearFrame();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Attaches Statistics View to guiNode and displays it on the screen
* above FPS statistics line.
*
*/
public void loadStatsView() {
statsView = new StatsView("Statistics View",
app.getAssetManager(),
app.getRenderer().getStatistics());
// move it up so it appears above fps text
statsView.setLocalTranslation(0, fpsText.getLineHeight(), 0);
statsView.setEnabled(showStats);
statsView.setCullHint(showStats ? CullHint.Never : CullHint.Always);
guiNode.attachChild(statsView);
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
@Override
public void render(RenderManager rm) {
super.render(rm);
rm.getRenderer().getStatistics().clearFrame();
}
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Attaches Statistics View to guiNode and displays it on the screen
* above FPS statistics line.
*
*/
public void loadStatsView() {
statsView = new StatsView("Statistics View", assetManager, renderer.getStatistics());
// move it up so it appears above fps text
statsView.setLocalTranslation(0, fpsText.getLineHeight(), 0);
guiNode.attachChild(statsView);
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Attaches Statistics View to guiNode and displays it on the screen
* above FPS statistics line.
*
*/
public void loadStatsView() {
statsView = new StatsView("Statistics View",
app.getAssetManager(),
app.getRenderer().getStatistics());
// move it up so it appears above fps text
statsView.setLocalTranslation(0, fpsText.getLineHeight(), 0);
statsView.setEnabled(showStats);
statsView.setCullHint(showStats ? CullHint.Never : CullHint.Always);
guiNode.attachChild(statsView);
}
内容来源于网络,如有侵权,请联系作者删除!