TurboWarp / extensions

User-contributed unsandboxed extension gallery for TurboWarp
https://extensions.turbowarp.org/
MIT License
116 stars 232 forks source link

Lily/Skins - Add option to not pause blocks while waiting for a skin to load #1560

Open LilyMakesThings opened 3 months ago

LilyMakesThings commented 3 months ago

This is something I'm going to work on if I have the time.

Right now each loading block in Skins will pause until it's finished loading the skin. That's fine in circumstances where someone new to the extension might be confused why their blocks don't work, but in advanced cases where loading several skins in (sometimes hundreds) is necessary, the waiting can add up

As I understand it, there's no performance reason why it would need to wait.

My current plan is to add a block that'll enable/disable the "waiting", but I'm not settled on it yet.

veggiecan0419 commented 3 months ago

Or an and wait dropdown?

SharkPool-SP commented 3 months ago

This is something I'm going to work on if I have the time.

Right now each loading block in Skins will pause until it's finished loading the skin. That's fine in circumstances where someone new to the extension might be confused why their blocks don't work, but in advanced cases where loading several skins in (sometimes hundreds) is necessary, the waiting can add up

As I understand it, there's no performance reason why it would need to wait.

My current plan is to add a block that'll enable/disable the "waiting", but I'm not settled on it yet.

can I do it

DNin01 commented 3 months ago

Skins could be loaded concurrently (e.g. in a web worker) to avoid lag (if that's possible), but creators could also use loading screens so users don't notice.