简体   繁体   English

Air iOS Flash,StageQuality.LOW似乎不起作用

[英]Air iOS Flash, StageQuality.LOW doesn't seem to work

I've read few articles about optimizing Flash performance on Air for iOS and many of them suggested to use StageQuality.LOW mode. 我读过几篇关于在Air for iOS上优化Flash性能的文章,其中许多人建议使用StageQuality.LOW模式。 But it seems Air(I'm using 3.6) doesn't allow you to use StageQuality.LOW, it must be either HIGH or BEST quality. 但似乎Air(我使用3.6)不允许你使用StageQuality.LOW,它必须是HIGH或BEST质量。

Am I missing something? 我错过了什么吗? Is there any way to turn it LOW quality mode? 有没有办法把它变成低质量模式?

In fact, there is a difference in performance. 事实上,性能存在差异。 StageQuality the difference in rendering performance such as bitmaps or textfield. StageQuality渲染性能的差异,如位图或文本字段。 StageQuality Lower Not applying antialiasing vector graphics, bitmap graphics without does not draw smoothly. StageQuality Lower不应用抗锯齿矢量图形,位图图形无法顺利绘制。 Higher quality settings produce better rendering of scaled bitmaps. 更高质量的设置可以更好地渲染缩放位图。 also, higher quality settings are computationally more expensive. 而且,更高质量的设置在计算上更昂贵。 In particular, when rendering scaled video, using higher quality settings can reduce the frame rate. 特别是,在渲染缩放视频时,使用更高质量的设置会降低帧速率。

What are you doing the work? 你在做什么工作? If you use the BitmapData, recommend as follows. 如果使用BitmapData,建议如下。

AIR 3.3 later added a new featured drawing method called drawWithQuality , which allows you to draw assets at a quality that is independent from the stage quality setting used in your app. AIR 3.3后来添加了一个名为drawWithQuality的新特色绘图方法,它允许您以与应用程序中使用的舞台质量设置无关的质量绘制资源。

In the past, the stage quality would have to be modified to change the quality of BitmapData.draw. 过去,必须修改舞台质量以改变BitmapData.draw的质量。 BitmapData. 的BitmapData。 drawWithQuality is an extension of BitmapData.draw that adds an optional parameter to specify the quality of vector rendering. drawWithQuality是BitmapData.draw的扩展,它添加了一个可选参数来指定矢量渲染的质量。

function drawWithQuality(source: IBitmapDrawable, matrix:Matrix=null, colorTransform: ColorTransform =null, blendMode:String=null, clipRect:Rectangle=null, smoothing:Boolean=false, quality:String=null): void

Following are the supported quality values: 以下是支持的质量值:

  • StageQuality.LOW StageQuality.LOW
  • StageQuality.MEDIUM StageQuality.MEDIUM
  • StageQuality.BEST StageQuality.BEST
  • StageQuality.HIGH_8X8_LINEAR StageQuality.HIGH_8X8_LINEAR
  • StageQuality.HIGH_16X16 StageQuality.HIGH_16X16
  • StageQuality.HIGH_16X16_LINEAR StageQuality.HIGH_16X16_LINEAR

It does work it just always shows up as HIGH in the AIR simulator. 它确实有效,它总是在AIR模拟器中显示为HIGH。 Will change on actual device. 将改变实际设备。 Bitmaps will smooth even in low quality in GPU mode as well. 在GPU模式下,即使在低质量位图中,位图也会平滑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM