GWT移动跨平台绘图性能 [英] GWT mobile cross-platform drawing performance

查看:92
本文介绍了GWT移动跨平台绘图性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我想为几个移动平台开发的一些游戏,我有一些想法。我不希望每个平台都使用不同的语言,我希望每个设备上尽可能使用统一的平台。

GWT似乎适合我的账单,因为我有更多的经验Java的。
很明显,对于跨平台的Javascript似乎可以在每个设备上运行,大多数市场上的所有产品都是Webkit(除了WP7)。
我不是在寻找硬核3D性能,而是一些体面的2D性能适合益智游戏和大多数游戏平台。我可以冒昧地说,我需要在静态或滚动背景的屏幕上显示10到500个动画精灵。

现在我很困惑,我不知道选择哪种渲染选项。我看到基于HTML5 Canvas的实现,然后是SVG,然后是VML,然后是(最后的手段)native。


为了获得良好的图形,最好采用哪种方法/框架性能和统一(尽可能)的发展?我正在寻求支持iOS,Android,WP7,WebOS的许多功能。

PlayN! http://code.google.com/p/playn/



相同的Java代码可以在桌面上本地运行(包括一个小程序,如果您真的想要的话;但这实际上对于调试或快速测试非常有用!或使用Canvas或WebGL编译为JS,或者即将编译为Flash(对于IE9之前的版本,Canvas不可用)。



没有VML,所以我猜WP7支持将不得不等待WP 7.1(这是将支持画布)。
或者您可以尝试使用 IKVM.NET 将其转换为.NET,并可能使用Silverlight;或者作为最后的手段,为PlayN编写基于IKVM.NET / Silverlight的运行时(在Silverlight上实现PlayN的API,使用ikvmstub使它们在Java世界中可用,最后使用ikvmc将Java字节码转换为.NET )。


I have some ideas for some games that I would like to develop for several mobile platforms. Rather than messing with a different language for each platform I would like some unified platform to go as far as possible on each device.
GWT seems like it would fit the bill for me since I'm more experience in Java. Obviously for cross-platform Javascript seems to work on each device, mostly everything on the market being Webkit (with the exception of WP7).
I'm not looking for hardcore 3D performance but rather some decent 2D performance suitable for puzzle games and at most platformers. I could venture to say that I need between 10 and 500 animated sprites on the screen with a static or scrolling background.
Now I'm puzzled by the fact that I don't know which rendering option to choose. I see there are HTML5 Canvas-based implementation, then there's SVG, then there's VML, then (last resort) native.

Which approach/framework would be best to take in order to have good graphics performance and unified (as much as possible) development? I'm looking to support as many of iOS, Android, WP7, WebOS.

解决方案

PlayN! http://code.google.com/p/playn/

The same Java code can run natively on desktop (including an applet if you really want to; but this is actually really useful for debugging or quick testing!) and Android; or be compiled to JS using Canvas or WebGL, or soon to Flash (for IE versions before IE9, where Canvas is not available).

No VML, so I guess WP7 support will have to wait for WP 7.1 (which will support canvas). Or you might try to use IKVM.NET to turn it to .NET, and possibly Silverlight; or as a last resort write an IKVM.NET/Silverlight-based runtime for PlayN (implementing PlayN's APIs on top of Silverlight ones, using ikvmstub to make them available in the Java world, and finally using ikvmc to turn your Java bytecode to .NET).

这篇关于GWT移动跨平台绘图性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆