MichaelD

Adding border to canvas drops FPS on mobile devices

Recommended Posts

Hello,

 

The weirdest bug/issue just came up, I had a very light game (in terms of updates/actions, etc) and I was getting no more than 25 FPS on mobile devices (quad core tablet, dual core mobile phone android)

 

When I was trying to figure out what was wrong I deleted one line from my .css file and suddenly the game runs with 55-60 FPS as intended.

 

I reversed the changed line and again fps dropped to 25-27.

 

I simply had 

canvas { border: 5px solid white;}

Does anyone know why this happens? And moreover if any more css properties affect game performance.

 

Thanks guys, I hope we can clarify and find the reason behind this.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.