htmlifier icon indicating copy to clipboard operation
htmlifier copied to clipboard

performance horrible in comparison with scratch itself

Open arch-user-france1 opened this issue 3 years ago • 15 comments

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

arch-user-france1 avatar Feb 07 '22 14:02 arch-user-france1

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.

ShipmasterKyle avatar Feb 07 '22 15:02 ShipmasterKyle

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.

arch-user-france1 avatar Feb 07 '22 16:02 arch-user-france1

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?

ShipmasterKyle avatar Feb 07 '22 16:02 ShipmasterKyle

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

SheepTester avatar Feb 07 '22 17:02 SheepTester

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"

ghost avatar Feb 07 '22 20:02 ghost

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

SheepTester avatar Feb 07 '22 20:02 SheepTester

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

ghost avatar Feb 07 '22 20:02 ghost

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.

ShipmasterKyle avatar Feb 07 '22 21:02 ShipmasterKyle

"Run" how?

SheepTester avatar Feb 07 '22 21:02 SheepTester

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.

arch-user-france1 avatar Feb 07 '22 21:02 arch-user-france1

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

ghost avatar Feb 07 '22 21:02 ghost

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 avatar Feb 07 '22 21:02 arch-user-france1

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.

arch-user-france1 avatar Feb 07 '22 21:02 arch-user-france1

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,

ShipmasterKyle avatar Feb 07 '22 21:02 ShipmasterKyle

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

arch-user-france1 avatar Feb 08 '22 17:02 arch-user-france1