com.jme3.app.Application.setAppProfiler()方法的使用及代码示例

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

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

Application.setAppProfiler介绍

[英]Sets an AppProfiler hook that will be called back for specific steps within a single update frame. Value defaults to null.
[中]设置AppProfiler钩子,该钩子将在单个更新框架内针对特定步骤回调。值默认为null。

代码示例

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

@Override
protected void onDisable() {
  getApplication().setAppProfiler(null);
  ui.removeFromParent();
}

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

@Override
protected void onDisable() {
  getApplication().setAppProfiler(null);
  graph.removeFromParent();
  background.removeFromParent();
}

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

@Override
protected void onEnable() {
  getApplication().setAppProfiler(prof);
  ((SimpleApplication) getApplication()).getGuiNode().attachChild(ui);
}

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

@Override
protected void onEnable() {

  // Set the number of visible frames to the current width of the screen
  setFrameCount(getApplication().getCamera().getWidth());

  getApplication().setAppProfiler(profiler);
  Node gui = ((SimpleApplication)getApplication()).getGuiNode();
  gui.attachChild(graph);
  gui.attachChild(background);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

@Override
protected void onDisable() {
  getApplication().setAppProfiler(null);
  ui.removeFromParent();
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

@Override
protected void onDisable() {
  getApplication().setAppProfiler(null);
  graph.removeFromParent();
  background.removeFromParent();
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

@Override
protected void onEnable() {
  getApplication().setAppProfiler(prof);
  ((SimpleApplication) getApplication()).getGuiNode().attachChild(ui);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

@Override
protected void onEnable() {

  // Set the number of visible frames to the current width of the screen
  setFrameCount(getApplication().getCamera().getWidth());

  getApplication().setAppProfiler(profiler);
  Node gui = ((SimpleApplication)getApplication()).getGuiNode();
  gui.attachChild(graph);
  gui.attachChild(background);
}

相关文章