News for hackers. Stuff that matters.
Re:Chrome will aggressively throttle background tabs by SapphireSun on Tuesday January 24, 2017 @03:08PM (#13474986)
I'm not a graphics expert, but one really easy change to make is a pattern like this:

    _needsrender = false;
    
    function render () {
        _needsrender = true;
    }

    requestAnimationFrame(function hardrender () {
         if (_needsrender) { 
          .... do stuff ....
          _needsrender = false;
         }
         requestAnimationFrame(hardrender);
    });

There are no comments on this comment yet.