Sign in to follow this  
DexterZ101

HTML5/JS drops FPS on maximized window?

Recommended Posts

DexterZ101    102

I'm playing with HTML5/JavaScript using canvas, I've noticed a huge drops on FPS whenever the browser windows get maximized. Initially I thought it was on the specific browser I'm using, but I test all the browser IE,FF,OP,CH all drops the frames per seconds when maximized at least 50% or more. Any hint why is this the case? thanks.

Edited by DexterZ101

Share this post


Link to post
Share on other sites
Ectara    3097

I know that it may come off as an insult, and I don't intend it to be that way, but is the drawing area scaled in any way based on the browser window's size? If so, then the rendering simply requires more work to draw whatever is being displayed.

Share this post


Link to post
Share on other sites
DexterZ101    102

Hello Dan,

My canvas size is fixed to 800x600 window size, I already tried changing the margin from left or right and my default setting is always on the middle.

It has no problem when the browser window is in normal, resize or even in full screen mode. The frame only drops when the window size of the browser resized by clicking the maximized control box button.

Currently I dont have a working site sample over the internet, I have this video feeds on youtube that shows whats happening. 

 

http://www.youtube.com/watch?v=vB4cjuPb_Dk&list=PL902122B327461763&index=3

 

 


 

Share this post


Link to post
Share on other sites
Ectara    3097

Hm... Does the same effect happen in you manually resize the window by clicking and dragging on the border to most of the display's viewport?

Share this post


Link to post
Share on other sites
DexterZ101    102

No sir T.T resizing the window thru dragging up to the edge of the screen does not drops the FPS, it only happens when clicking the maximize button of most popular browser I've tested.
 

Edited by DexterZ101

Share this post


Link to post
Share on other sites
Ectara    3097

Have you checked if your memory consumption increases drastically with the resized window? It shouldn't by too much, but if the fixed size viewport is achieved by getting the window's dimensions, and then drawing a black background around it, that can affect performance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this