3 ms·
I read the source some on github to try to figure out what the "iOS backend" is, but couldnt find any. Is it a native code layer to render canvas faster? like:
by bni 16y ago
I read the source some on github to try to figure out what the "iOS backend" is, but couldnt find any. Is it a native code layer to render canvas faster? like: http://www.phoboslab.org/log/2010/10/impact-for-ios http://www.phoboslab.org/log/2010/10/impact-for-ios
- ryanpetrich 16y agoiOS backend is here: https://github.com/fairfieldt/xc_ios https://github.com/fairfieldt/xc_ios
- AntiRush 16y agoYep, that's it although the repository isn't up to date. I need to push a lot of changes.
- AntiRush 16y agoI initially tried just that. Implementing the canvas drawing api turned out to be too slow with the Spidermonkey js engine, which is what I had to use. If I could use a jit version of Spidermonkey or iOS's native Javascript engine it likely would have been fast enough. Apple doesn't let you run jit compilers though, or link to their Javascript engine. After finding that out I moved to implementing a higher level api. It's similar to the cocos2d-iphone(http://www.cocos2d-iphone.org http://www.cocos2d-iphone.org) framework and, indeed, is a layer on top of cocos2d.