Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 5:25 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Hiding FPS Not Working
PostPosted: Wed Jul 04, 2012 3:06 am 
Offline

Joined: Wed Jul 04, 2012 2:58 am
Posts: 1
Greetings all. I'm a first time Slick user with a bit of an issue.

GameContainers show the FPS in the top-left corner which I like for debugging but obviously this isn't desired for a release build. I know the GameContainer class has a setShowFPS method that toggles this functionality but for some reason or another, this isn't working as even after making a call to the method, the container is still showing the FPS.

The goofy thing though is that after the call to setShowFPS, obviously passing in false, I printed the return of isShowingFPS to the terminal and it's returning false. So the container is reporting that the FPS isn't being shown but it's clearly still drawing the FPS after toggling the flag.

Any help here would be appreciated.


Top
 Profile  
 
PostPosted: Wed Jul 04, 2012 6:53 am 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
Have you, by any chance, got setShowFps anywhere else in your code? I had a similar issue, and it turns out it was because I had it in my input method.


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 2:00 pm 
Offline

Joined: Wed Feb 15, 2012 10:17 am
Posts: 11
Where are you using the setShowFPS()?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group