airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
206 stars 11 forks source link

Rendering engine applies AA when using cpu renderMode on OSX #3527

Open johnou opened 1 month ago

johnou commented 1 month ago

Problem Description

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

air_sdk_harman_50.2.5.1 air_sdk_harman_51.1.1.5

OSX, not Windows.

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 commented 1 month ago

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

johnou commented 1 month ago

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