On 2010-09-04, at 06:45, Raju Bitter wrote: > Is there code inside the LFC which will run into problems with such a > low framerate? Could objects be destroyed in such a case? How would > you handle such a situation within an OL app?
OL does expect to be able to set the player framerate for media playback; but from what you say, this is _not_ affected when media is playing and you are backgrounded. OL also has an abstract notion of framerate that corresponds to the idle polling rate, pretty much for legacy reasons. Depending on how the player implements interval timers, it is possible that OL will defeat the attempt to lower the framerate when the applications is backgrounded (since it installs an interval timer callback at the canvas or default framerate). Maybe the player takes the liberty of adding jitter to the interval timer when backgrounded automatically. If not, then the OL kernel should take notice of these deactivate events and 're-nice' itself appropriately. [IWBRN if all players did this -- it drives me nuts when a window I have left open in my browser that is totally obscured still sucks up 30% of my CPU running an animated flash advert.]
