You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use a single larger image, either as Entities or using the large cut Enums preview image, it causes cpu lag, causing editing Entities or dragging with Enums to become unusually stuck. Here's one of my failing projects level1.zip
The text was updated successfully, but these errors were encountered:
JsTools.createEntityPreview
td.createTileHtmlImageFromRect(ed.tileRect);
var b64 = haxe.crypto.Base64.encode( subPixels.toPNG() ); //this line is very slow
I merged the PR, but please note that your demo project is using 1100x1100 images as UI icons in the Entity list, which is quite too much for an icon. To get much better perfs, you should probably use smaller icons in your UI lists.
I understand 🤔
Maybe there's a way for LDtk to cache smaller size versions of the images when used in UI context, to avoid allocating huge images for very small screen space.
If I use a single larger image, either as Entities or using the large cut Enums preview image, it causes cpu lag, causing editing Entities or dragging with Enums to become unusually stuck. Here's one of my failing projects
level1.zip
The text was updated successfully, but these errors were encountered: