Jump to content
  • Advertisement
Sign in to follow this  
DexterZ101

HTML5/JS drops FPS on maximized window?

This topic is 2112 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement

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

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. 

 

">

 

 


 

Share this post


Link to post
Share on other sites

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

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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!