Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Really weird FPS drops

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 Crusable   Members   

594
Like
0Likes
Like

Posted 17 September 2013 - 09:58 PM

I am playing with java and I am working on a small game, however when I open the game I get 65 fps.This would normally be fine, but when I open the internet browser it jumps to about 800 fps. Why is this happening?



#2 SimonForsman   Members   

7633
Like
0Likes
Like

Posted 17 September 2013 - 11:57 PM

I am playing with java and I am working on a small game, however when I open the game I get 65 fps.This would normally be fine, but when I open the internet browser it jumps to about 800 fps. Why is this happening?

 

it could be your rendering skipping some expensive operations or vsync when the window loses focus, without seeing your code its pretty difficult to guess though.


I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

#3 AllEightUp   Moderators   

5765
Like
6Likes
Like

Posted 18 September 2013 - 12:02 AM

*
POPULAR

Probably the internet browser is Chrome which uses beginTimePeriod(1) as part of it's setup. Unfortunately this call has some negative effects on the entire Win32 environment. In your case, the measured FPS goes up either because the timer being used is effected or, the more likely reason, the internal code uses things like Sleep( 1 ) in various locations and now that Sleep( 1 ) is potentially 50 times shorter than expected. This is unfortunately a *BUG* in Chrome, no matter how they want to claim it is required, it is changing the environment for other programs so long as the browser continues to keep time periods set so low.

NOTE: see bugs listed on Chrome: 46531, 153139, 2039, 81693 and plenty of others being pissed about this...

Edited by AllEightUp, 18 September 2013 - 12:12 AM.


#4 Glass_Knife   Moderators   

8624
Like
0Likes
Like

Posted 18 September 2013 - 10:25 AM

Just curious, are you doing a Swing app, or a framework?  Just some more info for people reading this thread in the future.


I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532


#5 farmdve   Members   

194
Like
0Likes
Like

Posted 18 September 2013 - 12:18 PM

Probably the internet browser is Chrome which uses beginTimePeriod(1) as part of it's setup. Unfortunately this call has some negative effects on the entire Win32 environment. In your case, the measured FPS goes up either because the timer being used is effected or, the more likely reason, the internal code uses things like Sleep( 1 ) in various locations and now that Sleep( 1 ) is potentially 50 times shorter than expected. This is unfortunately a *BUG* in Chrome, no matter how they want to claim it is required, it is changing the environment for other programs so long as the browser continues to keep time periods set so low.

NOTE: see bugs listed on Chrome: 46531, 153139, 2039, 81693 and plenty of others being pissed about this...

Other people report higher frames in other games in the context of game performance. 


Edited by farmdve, 18 September 2013 - 12:18 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.