Strange FPS behavior

Discussion and feedback on Construct 2

Post » Tue Sep 02, 2014 9:21 am

Hello all,

I'm trying to understand something very strange on all my C2 projects. I don't know if it's related to the R178 or if it's just my system but here it is :

I have a strange fps issue in Chrome (and perhaps in NodeWebKit too but its less significant). Here is a very simple scene :

https://dl.dropboxusercontent.com/u/13847313/Scirra/Fps_Strange_Behavior.capx

When I play it in Chrome, my 60 fps drop to 40-50 after a few seconds then go back to 60. And it starts again a few seconds later...Etc.
So I'm saying to myself "What the hell"!? There's nothing in that scene. (And my PC is quite powerful)

Now If I remove the Platform Behavior on the cube, there's no more fps drop.
So I'm saying to myself "What the f**k"!?

Does anyone can test this on his machine to see if the issue is just on mine please ?

Thank you!!!!
B
72
S
21
G
12
Posts: 314
Reputation: 12,111

Post » Tue Sep 02, 2014 5:58 pm

@KaMiZoTo - I've noticed somethign similar to this, too. I can't remember how long ago, but the platform behavior alone seemed to start racking up and enormous amount of collision checks a few updates ago. I'm not sure if it pertained to that, though.
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Tue Sep 02, 2014 6:15 pm

I dont see it as being unusual especially with how how garbage collection works on javascript.
Image ImageImage
B
169
S
50
G
174
Posts: 8,322
Reputation: 110,788

Post » Tue Sep 02, 2014 6:32 pm

Have you tried the CAPX ?
Falling from 60 fps to 45/50 every 5-10 seconds seems to be new to me. It has a clear visual impact I haven't noticed before.

Anyway, if the platform behavior really impacts the fps that way, it should need a fix.
B
72
S
21
G
12
Posts: 314
Reputation: 12,111

Post » Tue Sep 02, 2014 7:06 pm

Just tested again, and Chrome, IE, and FF all ran 60 fps rarely dropping to 55 once, and 57-59 the few other drops.
Safari, 40, and Opera, well lets just say below that.
Its to be expected along with the 10+ or - ms with all timers.
I should also mention setting text every tick can have an impact as well.
Image ImageImage
B
169
S
50
G
174
Posts: 8,322
Reputation: 110,788

Post » Wed Sep 03, 2014 11:53 pm

I finally found the origin of the issue.

After a few tests, it seems it only appears in fullscreen (with or without the browser tabs (F11)) in chrome.
But if I use the window mode and scale it manually to the max size of my screen, there is not fps drop.

Then I unplugged my second screen (I have 2 monitors)
No more fps drops! Everything just works fine, in fullscreen or not.

So it seems that Chrome doesn't like fullscreen HTML5 applications with dual monitor!
Does anyone heard of that problem ? Is there a trick to fix this bug ?
B
72
S
21
G
12
Posts: 314
Reputation: 12,111

Post » Thu Sep 04, 2014 12:21 am

KaMiZoTo wrote:I finally found the origin of the issue.

After a few tests, it seems it only appears in fullscreen (with or without the browser tabs (F11)) in chrome.
But if I use the window mode and scale it manually to the max size of my screen, there is not fps drop.

Then I unplugged my second screen (I have 2 monitors)
No more fps drops! Everything just works fine, in fullscreen or not.

So it seems that Chrome doesn't like fullscreen HTML5 applications with dual monitor!
Does anyone heard of that problem ? Is there a trick to fix this bug ?


Nah, It might be that you have been running it on your second screen. I had the same issue and if i remember correctly displaying the game full screen on the main screen worked fine ( but will doublecheck ^^ )
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Sep 04, 2014 8:51 am

@megatronx You're right. The issue only appears on the second screen.
but it's still a problem don't you think ? If you want to sell a game, you shouldn't have to say :"Hey player! By the way! Don't play my game on your second screen!". :)
B
72
S
21
G
12
Posts: 314
Reputation: 12,111

Post » Thu Sep 04, 2014 11:12 am

KaMiZoTo wrote:@megatronx You're right. The issue only appears on the second screen.
but it's still a problem don't you think ? If you want to sell a game, you shouldn't have to say :"Hey player! By the way! Don't play my game on your second screen!". :)



Not really. Notice you can only play many games on screen number one. I had 560 and all aaa games i could only play on that screen.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Sep 04, 2014 11:55 pm

Could this also be a video card driver issue? I know I've had issues much like this where a game would have low fps unless I ran it in windowed mode. Turns out the drivers were the culprit.
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Colludium, Lancifer, Rei TheMartianCat and 11 guests