Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Really weird FPS drops


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   -  Reputation: 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?



Sponsor:

#2 SimonForsman   Crossbones+   -  Reputation: 6318

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   -  Reputation: 4270

Like
6Likes
Like

Posted 18 September 2013 - 12:02 AM

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   -  Reputation: 5029

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"
Indie Game Programming

#5 farmdve   Members   -  Reputation: 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.



PARTNERS