FPS issue based on the size of the canvas

FPS issue based on the size of the canvas
0.0 0

#1

Based on the browser window size I see some fps drops and rises. So in the beginning its 30 on some devices, I resize a bit the window (resize the canvas as far as I understand because even adding some html above the canvas can cause this problem)and it becomes 60. What can be the reason?


FPS Performace issues
#2

Do the draw calls change?


#3

no , the strange thing is that the problem is only with fps… renderer and game logic time is enough to have greater fps, but fps is still low.
image

after small resize of the window , it becomes 60 and renderer and game logic are decreasing their values too
image

and important is that this is happening on a really strong computer. So its not about device


#4

If that’s the case then you should take a look at the browser performance profiler and see where most of the cpu goes.


#5

ok, thanks for the advice


#6

If you find anything out of the ordinary, let us know. :slight_smile:


#7

ok sure :slight_smile:


#8

I’ve got same problem.
Everything work fine in fullHD but FPS drop on 4K monitor.


#9

There is at least 1 bug related to screen size and fps for WebGL in Creator 1.7+ and 1.8. Accordingly to dev team, this will be fixed soon.

Read this: Cocos Creator v1.7.2


#10

I found out that the problem exists only on Google Chrome. On Safari it works great. And I noticed that there is max width of the canvas before which it works smoothly but after I resize the window more, I start having some fps glitches. Does anybody have this kind of problem and what is the solution? :slight_smile:


#11

also it works fine on Firefox. So the problem is only Google Chrome


#12

This is not happening with Creator 1.5.2


#13

So do you know if the problem will be fixed on coming versions or the only way is to go from 1.8.1 to 1.5.2? :slight_smile:


#14

@slackmoehrle can we get a word from the team on this?


#15

We fixed the issue and compared performance, to ensure 1.7.2/1.8.1 run as fast as 1.6.
But, is Creator 1.6 also slower than 1.5.2?


#16

1.7.2 is not as fast as 1.5.2. I have both in my computer and there are performance issues on webgl based on how big is canvas size. The bigger, the slower. And it seems Im not the only one having issues…


#17

Could you explain this again?


#18

It should be fixed by this PR https://github.com/cocos-creator/engine/pull/2357


#19

I can confirm that now it works great!! Thanks @slackmoehrle @pandamicro @jare!! Awesome job! :smiley:


#20

The issue is fixed with that change! Thanks. When are you going to release next version?