Commit 1db4479
committed
v8.2b: Just add opacity:0.8 => 200 balls @ 30FPS
Now we add opacity to control "light" to mimic 3D space.
By setting opacity = 1, frame rate is high as v8.2 (Later drawn balls will overwrite drawn balls).
By setting opacity = 0.8, frame rate is very unstable, can not even animate 200 balls at 30 FPS smoothly.
Tab 'Performance' shows that CPU consumption is as low as v8.2, because logic stays the same, but GPU takes a lot of time.
After digging many other tools (Layers, Tracing, Performance monitor, and other browsers like Safari & Firefox too), I can not find the exact root cause for this behavior in details. But I know there's something wrong from GPU side.1 parent c82907d commit 1db4479
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
Loading
0 commit comments