CSS hardware accelerating triggering GPU crash -


on webapp i'm working on me , team have users experiencing browser crashes when they're using our app. forced restart browser. prolem occurs in browsers on different os's. havent found plugins in browsers affect issue. have been tracking our own logs, windows logs etc. without findings relate problem. watched cpu- , hardrive usage when succeeded trigger problem ourself. nothing of chart. have made me , team suspicious gpu having problem with.

we made research , found out animation, transition, opacity, transformation in css can trigger css crashes. don't have knowledge nor experience conclude it's problem.

we using hardware accelerating css like:

transform: translate3d(0,0,0) translatez(0); 

and we're using css rotating keyframe animations:

@keyframes rotate {     0% {         -webkit-transform: rotate(0deg);     }     100% {         -webkit-transform: rotate(359deg);     } } 

on of users experiencing browser crashes we've implemented feature switch. feature switch removes transitions, transforms , keyframe animations. have been telling think feature switch improvement. can't tell if it's placebo or if did help.

so before remove bunch of transtions , transforms app thought worth checking out if there else experiencing same problems. thoughts , ideas welcome.

it's worth mentioning our webapp one-page-app using knockout.js

i've faced same kind of trouble crashing ios - safari browser. wrote note time pasted in below -

  1. don't use in transition property, use property want animate (avoid transition: 400ms, try transition: color 400ms, background 400ms)
  2. use keyframe animation as can
  3. decrease size of document
  4. reduce request , optimize images
  5. use translate3d, force ios use 3d acceleration , better memory allocation.

if still out of luck, remove transition ios , animate using js, know it's expensive when can't use library tweenmax solution.

note: js animation may affect animation frame-rate. using raf (request frame animation) may enhance bit.

*** css3 animations in-need website animation amount less , output ~60 fps, js vary based on device.

hope found useful. suggest stick new feature you've, try fix it.

best of luck.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -