-
Notifications
You must be signed in to change notification settings - Fork 472
Description
I've recently been running some tests on the Flash target with Flixel, and I've noticed that it's not very well supported. Many common elements of Flixel are broken on renderBlit, such as FlxSprite alpha, coloring, blend modes, etc. This raises the question: is it really worth supporting? The lack of concern over so many obvious issues with renderBlit
shows that it's an underutilized and deprecated target.
Another concern is how it's implemented. The renderBlit
variable is set when FlxG
is loaded and cannot be changed at runtime. This makes checking it as a variable at runtime (especially in cases like FlxSprite rendering) pointless, given that overuse of if statements can be expensive.
My solution? Either completely remove renderBlit and the Flash target to improve code quality and eliminate the headaches of supporting Flash, which continue to hold Flixel back from reaching its full potential. Alternatively, replace instances of if (FlxG.renderBlit)
with a compiler flag like FLX_RENDERBLIT
to reduce compiling times and improve rendering performance altogether.