simpleInitApp() method - setDisplayFps(false); setDisplayStatView(false); doesn't work

when I used this setDisplayFps(false); setDisplayStatView(false);

or either of that one, it says cannot find symbol so I can’t used it…



This is the code:

RacerV app = new RacerV();

app.setPauseOnLostFocus(false);



AppSettings gameSettings = null;

gameSettings = new AppSettings(false);

gameSettings.setResolution(1280, 720);

gameSettings.setFullscreen(false);

gameSettings.setVSync(false);

gameSettings.setTitle(“CHECK POINT”);

gameSettings.setUseInput(true);

gameSettings.setFrameRate(500);

gameSettings.setSamples(0);

gameSettings.setRenderer(“LWJGL-OpenGL2”);

app.settings = gameSettings;

app.start();



and I inserted the code setDisplayFps(false); setDisplayStatView(false); or

app.setDisplayFps(false); app.setDisplayStatView(false); or

gameSettings.setDisplayFps(false); gameSettings.setDisplayStatView(false);



but It doesn’t work…

Help please!!!

1 Like

You are using an outdated version of jME3 if it doesn’t work in simpleInitApp(), please download the Beta.

are you really calling it in the simpleInit() method?

because the piece of code you posted is called in the main…

make sure you’re calling these method in the simpleInit.