Jump to content

Adding border to canvas drops FPS on mobile devices


MichaelD
 Share

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.

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...