flixel icon indicating copy to clipboard operation
flixel copied to clipboard

Performance issue in BitmapFrontEnd

Open JoeCreates opened this issue 6 years ago • 0 comments

Noticed this while looking into some slow procgen graphics.

https://github.com/HaxeFlixel/flixel/blob/c302aaafb846edf42ce2e431e3bf6b492d03b558/flixel/system/frontEnds/BitmapFrontEnd.hx#L195-L198

This will be ultra slow because map iteration in haxe is very slow and causes a lot of memory allocations. A two way map would be far preferable. This will be an issue if you do anything where you do pixels = pixels every frame for updating the frame of procgen graphics.

JoeCreates avatar Jan 20 '19 02:01 JoeCreates