thunkable / thunkable-issues

24 stars 9 forks source link

Canvas processing is slow and unpredictable #1232

Open tatiang opened 1 year ago

tatiang commented 1 year ago

Platform

Drag and Drop UI - web Drag and Drop UI - iOS

Steps to Reproduce

In order to create a grid of sprites for a tower defense game, I'm using nested loops with a Create [Sprite] block inside. See the screenshot below. When I take this approach with sprites, the sprites are often (say, 50% of the time) created with incorrect positions. Even adding Wait block delays doesn't resolve this issue.

When I take the same approach but create buttons instead, the buttons are instantly created and perfectly positioned.

There are examples of this in the forum topic linked below.

Expected Behavior

I would expect the creation of sprites to work as fast and reliably as the creation of buttons.

Actual Behavior

See above.

Project Link

https://x.thunkable.com/copy/4b08348bdc77e032144f0eec6f7ef3bf (note: this project is Private)

Community Link

https://community.thunkable.com/t/best-way-to-create-a-grid-of-sprites/2219540

  STACK TRACE AND/OR SCREENSHOTS

image