120 likes | 145 Views
Explore the new il2cpp compiler for cross-compiling into C++. Learn about WebGL limitations, future enhancements, and helpful tips and tricks for WebGL development. Resources and insights from Christopher Pope and Unity's il2cpp platform advancements.
E N D
WebGL & il2cpp Christopher Pope @CreativeChris1
WebGL Using the new il2cpp compiler to cross compile into C++ Cross compiling Unity source code into Javascript using the amscript compiler WebGL is currently a preview version (try it!)
WebGL – Preview Status Some functionality we don’t support on our side WebGL ecosystem still being in an early state Need some development from the browsers for us to support everything we want to do WebGL is not a replacement for WebPlayer ;)
WebGL – Limitations Features not yet supported: Substance, Realtime GI, MovieTextures, WebCam, Microphone Not yet supported by the platform: Threads, Advanced Audio, Debugging Functionality not mapping to the platform: Sockets, JIT Features Memory constraints: Unity heap – array of bytes in JS
WebGL – Tips’n’tricks Crunched Texture Compression Added in 5.1 AssetBundles Reducing memory & build size Use Unity Profiler It works!
WebGL – Future Memory WebAssembly, Data compression, Code size reductions Performance Shared array buffers Graphics WebGL 2.0 – try it!
WebGL – Resources Movie / Video in WebGL: https://www.assetstore.unity3d.com/en/#!/content/38369 Unity Benchmarks: http://beta.unity3d.com/jonas/WebGLBenchmark/ Jonas Echterhoff Unite Europe 2015 talk: https://www.youtube.com/watch?v=RufJDxm6Lq8
il2cpp Intermediate Language to C Plus Plus Cross compiler from Microsoft Intermediate language to C++
Il2cpp + Platforms iOS: 4.6+ WebGL: 5.0+ Android: 5.2+ - added as experimental PS4 & Xbox 1 5.2.0p1+
Il2cpp + Future Optimisations: Distribution size, Build time, Memory usage Platforms: Windows Store Apps 5.3, Nintendo 3DS (in development), Standalone's in Research phase. Everything else at some point in the future ;) Managed Debugger: We working on something, You can already debug generated C++ code (Blog post) .NET Profile Upgrade: Research phase, longer term A New GC: It’s important! It’s in research phase
il2cpp – Resources Debugging generated C++ code http://blogs.unity3d.com/2015/05/20/il2cpp-internals-debugging-tips-for-generated-code/ Roadmap: http://unity3d.com/unity/roadmap Joshua Peterson il2cpp blog series: http://blogs.unity3d.com/2015/05/06/an-introduction-to-ilcpp-internals/
Thank you! Questions? • Christopher Pope • @CreativeChris1