Performance Improvements

  1. Can we use RGBA4444 PNGs and set <window color-depth="16" /> to improve performance?

  2. Like Adobe Air apps, Are there any benefits if we pack all png files into a texture atlas to gain high performance?
    https://lib.haxe.org/p/openfl-texturepacker/

Thks!

It’s indeed better to use atlases to allow batching. But your link is very old, prefer instead this lib : https://github.com/loudoweb/openfl-atlas (if you have any problem with this, please tell me).

2 Likes

Hi
After removing some “bad code” when using Timer and Mouse_Move , I can now get 60 fps.
I used to do a small test with your lib, it did work very well! No problem found!