On Sun, Jun 3, 2012 at 11:51 AM, Ilmari Heikkinen
<
ilmari.heikkinen@gmail.com> wrote:
> Hi Mikko,
>
> In what cases does the unprompted WebGL canvas clearing occur? Do you
> have a minimal testcase and/or more details about the hardware setup
> of your users.
>
> The only canvas-clearing DOM thing that I'm aware of is setting the
> canvas element width and height attributes. If the clearing happens on
> CSS changes or changing unrelated elements, it sounds like a browser
> bug so all details would be appreciated.
>
> Thanks,
> Ilmari
>
>
> 2012/6/1 Mikko Mononen <
mikko@tinkercad.com>:
>>
>> Hi,
>>
>> Are there some general guidelines how to build a render loop where the
>> app only draws the scene when something changes? Pretty much all the
>> samples out there render in an infinite loop.
>>
>> Our app currently renders only when something changes to save the
>> precious battery and fans. We're getting increasing amount of reports
>> from the users using bleeding edge Firefox or Chrome that rendering
>> does not work for them anymore. If we render stuff with infinite loop
>> using requestAnimationFrame(), everything works, but once rendering
>> only when stuff changes, the WenGL canvas is cleared when any element
>> state changes in DOM, i.e. hover changes element appearance of a
>> button.
>>
>> My diagnosis is a bit Chrome specific, but since we're getting similar
>> reports from FF users too, I'm worried that I'm missing something more
>> general.
>>
>>
>> --mikko
>>
>>
>> --
>> Mikko Mononen, Software Engineer
>>
http://tinkercad.com - Solid modeling for artists & makers
>>
>> -----------------------------------------------------------
>> You are currently subscribed to
public_webgl@khronos.org.
>> To unsubscribe, send an email to
majordomo@khronos.org with
>> the following command in the body of your email:
>> unsubscribe public_webgl
>> -----------------------------------------------------------
>>
--
Mikko Mononen, Software Engineer
http://tinkercad.com - Solid modeling for artists & makers
-----------------------------------------------------------
You are currently subscribed to
public_webgl@khronos.org.
To unsubscribe, send an email to
majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------