【发布时间】:2013-03-16 05:38:13
【问题描述】:
我需要在 iOS 中将一系列图像显示为动画(使用 Monotouch)。使用 800x600 尺寸的图像,我可以让它们在我的 iPad 3 上显示的最快速度是 160 毫秒(6.25 fps)。我希望它在 15-30fps 范围内(每张图像
public override void Draw (RectangleF rect)
{
base.Draw (rect);
var cgimg = UIImage.FromFile (filename).CGImage;
CGContext g = UIGraphics.GetCurrentContext();
g.DrawImage (new RectangleF (0, 0, cgimg.Width, cgimg.Height), cgimg);
}
将它们渲染为电影不会提供我想要的交互速度(来回擦洗帧)
这是否超出了硬件限制? (它似乎不应该是)。我需要使用 openGL 还是 Monogame?
【问题讨论】:
标签: ios opengl-es uiview xamarin.ios cgcontext