increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 159 forks source link

Object stacking optimisation #945

Open Stingby12 opened 2 years ago

Stingby12 commented 2 years ago

A bunch of objects set in one object legend in a instruction should count as a single instruction. It could make the game building lag horribly or even crash.

I wanted to make an animated block for my PuzzleScript game. I put all of the frames on a legend, but the game made an instruction for every item and generated 55022 instructions.

increpare commented 2 years ago

It does sometimes, but not always. If you give me an example I can comment in more detail (though no timescale on when).

Stingby12 commented 2 years ago

Here, try to load this project in PuzzleScript : https://gist.github.com/Stingby12/2c07169f30c8e3c4cdfa803f17e78f51

increpare commented 2 years ago

Thanks! I made a reduced example here

https://www.puzzlescript.net/editor.html?hack=6b9c354fe37ab7c22794335f19af3b0e

and may look at this some time in the future - it's good to have something to aim at optimizing next time I'm doing optimization work. (But it's pretty low priority).

Best S

Am Mi., 12. Okt. 2022 um 07:30 Uhr schrieb Stingby12 < @.***>:

Here, try to load this project in PuzzleScript : https://gist.github.com/Stingby12/2c07169f30c8e3c4cdfa803f17e78f51

— Reply to this email directly, view it on GitHub https://github.com/increpare/PuzzleScript/issues/945#issuecomment-1275609915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADRVYDIONVI2JAMJDLZQATWCZEHZANCNFSM6AAAAAARCSS7G4 . You are receiving this because you commented.Message ID: @.***>