Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance horrible in comparison with scratch itself #146

Open
arch-user-france1 opened this issue Feb 7, 2022 · 15 comments
Open

performance horrible in comparison with scratch itself #146

arch-user-france1 opened this issue Feb 7, 2022 · 15 comments

Comments

@arch-user-france1
Copy link

The performance is horrible. Take a look at miner cat 4. It wont run on your computer with this.

@ShipmasterKyle
Copy link

I think your computer is just bad. HTMLifier converts scratch projects to an html file. Large games tend to take longer to load or crash on low end computers. Thats not really an HTMLifier issue.

@arch-user-france1
Copy link
Author

My computer is not bad at all it's able to handle ark at max settings with 60 FPS.

I said it's extremely bad and I compared with the real scratch. It almost crashed the browser.

@ShipmasterKyle
Copy link

Thats not htmlifier performance though. Your issue is your browser crashed not HTMLifier crashed. Seems like your browser can't handle the HTML file. What settings did you use to HTMLify?

@SheepTester
Copy link
Owner

SheepTester commented Feb 7, 2022

The HTML file requires more memory because all the assets are stored as strings in the HTML which increases their file size by a third as well as stores them in memory. Does using the download as a zip option help?

This is a consequence of people's naive desire to want a single HTML file

@ghost
Copy link

ghost commented Feb 7, 2022

The HTML file requires more memory because all the assets are stored as strings in the HTML which increases their file size by a third as well as stores them in memory. Does using the download as a zip option help?

This is a consequence of people's naive desire to want a single HTML file

did anyone actually ask for just a single file? I prefer downloading as a zip simply cuz it looks "cooler"

@SheepTester
Copy link
Owner

A lot of Scratchers think in terms of "converting" rather than "packaging," and they expect the file extension to change to .html. Also, the HTML file in the zip file can't be directly opened in the browser

@ghost
Copy link

ghost commented Feb 7, 2022

the HTML file in the zip file can't be directly opened in the browser

I think I just found out why my old projects dont work anymore

@ShipmasterKyle
Copy link

If you want to play the game as a zip you could always simply unpack it in a folder then run the index.html included.

@SheepTester
Copy link
Owner

"Run" how?

@arch-user-france1
Copy link
Author

Thats not htmlifier performance though. Your issue is your browser crashed not HTMLifier crashed. Seems like your browser can't handle the HTML file. What settings did you use to HTMLify?

Idk but my browser is able to handle the script on scratch. I've just set FPS to 60 and maybe enabled Turbo Mode.

My Browser is chromium based.
Its unplayable with this.

@ghost
Copy link

ghost commented Feb 7, 2022

If you want to play the game as a zip you could always simply unpack it in a folder then run the index.html included.

no you can't, as Sean just said
I know this myself cus I tried doing it before, it just doesn't work

@arch-user-france1
Copy link
Author

The HTML file requires more memory because all the assets are stored as strings in the HTML which increases their file size by a third as well as stores them in memory. Does using the download as a zip option help?

This is a consequence of people's naive desire to want a single HTML file

I used it with ZIP and a Python webserver

@arch-user-france1
Copy link
Author

If you want to play the game as a zip you could always simply unpack it in a folder then run the index.html included.

Most browser don't allow file-CORS requests so that won't work.

@ShipmasterKyle
Copy link

If you want to play the game as a zip you could always simply unpack it in a folder then run the index.html included.

no you can't, as Sean just said I know this myself cus I tried doing it before, it just doesn't work

Yeah I just tested this. I infered it should work as the html file is still executable with a file:// link. A further examination shows that it crashes on launch however I'm 99% sure ik a work around for this although I have yet to test it,

@arch-user-france1
Copy link
Author

Everybody is able to test it byself, just play the game meiner cat 4, once on real scratch and once package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants