是否有人在闪存中使用 BitmapData 实现了帧缓冲区来替换其显示列表?
如果有人有帧缓冲区实现,您能分享一些性能基准吗?或者至少告诉我你们的观点有多大差异。
我需要制作一个Flash游戏,它有近1K 50x50位图在屏幕上移动(显示列表中超过10K显示对象),并且想知道flash是否可以在至少30FPS的普通PC上很好地支持它。
If anyone has a framebuffer implementation, could you please share some performance benchmarks? Or at least tell me how much difference are there in your point of view.
I need to make a flash game which has almost 1K 50x50 bitmaps moving on screen(more than 10K display object in display list), and want to know if flash can support it well on a normal PC with at least 30FPS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以查看 flixel 库 以获取光栅化库,有关位图与显示列表的比较,请查看此博客文章
You can have a look at the flixel library for a rasterize library and for a bitmap versus display list comparison have a look at this blog post
如果您使用 BitmapData 并且不需要旋转精灵,您应该能够很容易地做到这一点。这是 10,000 个 3x3 像素精灵的示例 - 我在 7,000 个 50x50 像素精灵上使用了相同的技术,并且运行得很好:
http://actionsnippet.com/?p=224
You should be able to do this pretty easily if you use BitmapData and you don't need to rotate your sprites. Here is an example of 10,000 3x3 pixel sprites - I have used this same technique on 7,000 50x50 pixel spites and it runs just fine:
http://actionsnippet.com/?p=224