Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Rendering engine applies AA when using cpu renderMode on OSX

Open johnou opened this issue 1 year ago • 2 comments

Problem Description

Rendering engine applies AA when using cpu renderMode on OSX, it is not an issue with gpu.

  • Which AIR SDK did you use?

air_sdk_harman_50.2.5.1 air_sdk_harman_51.1.1.5

  • Describe the affected environment: Android vs. iOS, all devices vs. just specific models.

OSX, not Windows.

  • Can you reproduce it yourself, or did you get reports from other users? If so, how many users are affected (percentage)?

yes, 100%

as per https://github.com/airsdk/Adobe-Runtime-Support/issues/1545 allowLowQuality was set to true in initialWindow

with gpu

Screenshot 2024-10-17 130744

with cpu

Screenshot 2024-10-17 130724

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.quality = StageQuality.LOW; // Graphics are not anti-aliased, and bitmaps are not smoothed, but runtimes still use mip-mapping.

the above actually feels like a hack, are we missing out on performance gains / fps by setting quality to low..? ideally we just want to use pixel art in bitmaps without any form of AA applied.

all our bitmaps are created with smoothing = false

Steps to Reproduce

changing renderMode from gpu to cpu, add pixel art bitmap with smoothing [1] false

[1] https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Bitmap.html#smoothing

Known Workarounds

use gpu mode

johnou avatar Oct 17 '24 11:10 johnou

cc @ajwfrost since you are familiar with https://github.com/airsdk/Adobe-Runtime-Support/issues/1545

johnou avatar Oct 17 '24 12:10 johnou

fwiw we have set <allowLowQuality>true</allowLowQuality> in initialWindow tag set.

johnou avatar Oct 18 '24 13:10 johnou