pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

Kiosk app performance

Open Jaqster opened this issue 2 years ago • 2 comments

Sometimes takes a long time to load games...

Jaqster avatar Jul 01 '22 16:07 Jaqster

@jwunderl if I remember idea was to cache locally right? @aznhassan share page compile should improve this performance too.

abchatra avatar Sep 28 '22 03:09 abchatra

Right, if we mirror this logic https://github.com/microsoft/pxt-arcade/blob/master/docfiles/script.html#L269, which gets and store builtsimjsinfo (which is the binary js plus a few things) to the call to simulateAsync in pxt/webapp/public/run.html, all we'd need is a flag to post that built code to the parent iframe and to modify the server=1 flag to allow it to also accept a message with builtsimjsinfo, then the kiosk can cache it and itll load almost instantly from then on.

jwunderl avatar Sep 28 '22 04:09 jwunderl