PuzzleScript icon indicating copy to clipboard operation
PuzzleScript copied to clipboard

Object stacking optimisation

Open Stingby12 opened this issue 3 years ago • 4 comments

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.

Stingby12 avatar Oct 11 '22 19:10 Stingby12

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

increpare avatar Oct 11 '22 19:10 increpare

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

Stingby12 avatar Oct 12 '22 05:10 Stingby12

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: @.***>

increpare avatar Oct 12 '22 09:10 increpare