go on mobile example

blov · · 1083 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>sharing something I&#39;ve been working on with Go on mobile: <a href="http://i.imgur.com/M5Jj6hJ.png">http://i.imgur.com/M5Jj6hJ.png</a></p> <p>This is a piano app. Four controls at the top turn on/off reverb and lowpass filters, a metronome, and a 4-measure 80 BPM record-and-loop.</p> <p>The floating action button swaps between three different sounds: piano, wobble (connect phone to decent speakers), fancy-beats.</p> <p>On tablet, phone-landscape, or desktop, there&#39;s an empty space to the right where I&#39;m planning to add UI for designing your own sounds to play on the keyboard: <a href="http://s23.postimg.org/hitbx5i3t/Screenshot_20160228_165851.png">http://s23.postimg.org/hitbx5i3t/Screenshot_20160228_165851.png</a></p> <p>Graphic perfomance on a cheap phone (moto G 2nd gen) is crap at 20 fps. I intentionally took a naive approach in the pkg snd example to stress pkg material so that&#39;s something I&#39;ll be working on as well.</p> <p>All in all, still pretty neat.</p> <p>sources:</p> <p><a href="https://github.com/dskinner/snd">https://github.com/dskinner/snd</a></p> <p><a href="https://github.com/dskinner/material">https://github.com/dskinner/material</a></p> <hr/>**评论:**<br/><br/>helinwang: <pre><p>mind explain what do you this the graphic bottleneck is? does not sound like a super complicated app. 20 fps is pretty low even on moto g i think.</p></pre>dasacc22: <pre><p>I haven&#39;t profiled it yet, but there&#39;s a lot of naiveness going on in that screenshot.</p> <p>Every piano key for example is a material.Material type which means it has its own (same) geometry, it&#39;s own (same) shader program.</p> <p>I considered perhaps the shadows implementation was at fault and disabled shadow rendering but only gained about 5-7 fps. Aside from material/simplex, most other functionality in material has been added rather adhoc so it appears time to go in and clean stuff up.</p> <p>Then again, the slow down may be due to something completely unexpected and simple.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1083 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传