cc-tweaked / CC-Tweaked

Just another ComputerCraft fork
https://tweaked.cc
917 stars 212 forks source link

Audio guide's examples have issues #1851

Closed Zirunis closed 3 months ago

Zirunis commented 3 months ago

Super low priority because the guide is great and the examples are good and work in Minecraft, but... at least for me they don't quite work in the browser.

This may be an issue just for me (using ungoogled chromium), in that case simply close this issue.

Otherwise I'm assuming that these may be hard to fix or simply limited by the processing power the browser is allowed to use? Like I said, not important. I just noticed it so I thought I'd document it.

SquidDev commented 3 months ago

Thanks for the report!

Unfortunately the browser Lua VM is not especially efficient, and these examples are really pushing the limits of what we can achieve in the browser, especially the fourth one. However, I'm surprised that it's this bad — I can run examples 2 and 3 on my phone, so a normal desktop/laptop shouldn't have any issues!

Would you be able to try with a different browser (e.g. Firefox) and see if it's any better there?

Zirunis commented 3 months ago

Yup, installed firefox and it runs flawlessly! Also doesn't eat nearly as much CPU as it does on Chromium. So it's probably an issue with my browser. Probably won't dig deeper though as I've not encountered the issue before