fredsa / forplay

Automatically exported from code.google.com/p/forplay
Apache License 2.0
12 stars 4 forks source link

"Cute" sample runs much slower than it should on Chrome WebGL #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
?renderer=canvas runs faster on Chrome, though it shouldn't. The WebGL version 
runs well on WebKit nightly (mac) and Firefox 4.

A profile shows >90% of time being spent in (program), which means it's outside 
of the Javascript code and/or native code called directly from Javascript. This 
means the time's going to code that sits outside the Javascript event loop, or 
possibly in another process (like the compositor).

Original issue reported on code.google.com by joelgwebber on 21 May 2011 at 6:28

GoogleCodeExporter commented 9 years ago
Okay, maybe I'm just seeing things (or maybe I had it running in dev mode by 
accident). WebGL running slowly in dev mode is expected, because it makes a 
huge number of native calls, which must go over the wire. This doesn't affect 
production compiles.

AFAICT, the webgl version of cute runs very fast when compiled.

Original comment by jgw@google.com on 25 May 2011 at 3:39