Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits) (+1)

i'm wondering if I can get your opinion on the load time for the game as it is.  it shouldn't get much slower now that i'm using two or three cards per section instead of dozens, but i can always go back and speed it up further.  here's the link:  https://waldorfhammer.itch.io/key-2


thanks, Millie!

(+2)

I don't think the load time is too bad at 20mb; it's noticeable, but compared to games made in Unity or Ren'Py loading in a few seconds is still pretty fast.

Looks like you built this game with Decker 1.62; in the 1.63 release I fixed a bottleneck that was slowing down deck loading a bit in native-decker, but it was most noticeable in debug builds. Still, upgrading might make your development a little bit snappier. I'm tinkering with some other performance improvements presently.

Using contraptions as reusable graphical assets is certainly one way to cut down on repeated background images; it looks like you're doing this pretty extensively already for puzzle elements. If any elements are one-offs you could also use canvas widgets as graphical elements you can show/hide, move around the card, or copy from place to place. I was a little surprised to see that you aren't using canvases at all in this deck!

(+3)

i'm so new to using Decker, I wasn't actually aware of canvas widgets until you just mentioned them.  :-)   so, thanks, i will explore this!

i just finished cutting a bunch of redundant cards, so it's down to about 13mb now, but it's great to know that the loading wasn't bad at 20mb.  

it's also great that you and the Decker community are all so helpful.  i love being part of it!

(+1)

i have a follow-up to the file size question:

in order to decrease the file size by removing cards, i'll need to increase the amount of scripting significantly.  are there any issues with having particularly long card scripts?  i currently have a 200-line script that i will need to expand to about 2000 lines.  this won't affect performance, will it?

There's nothing inherently wrong with long scripts. If you can describe what your code is doing I might have some suggestions for ways you can simplify and shorten them?

it's a habit i've had for about 40 years (since the days of BASIC) - writing unnecessarily long code, especially when a language is new to me.  this project is particularly inefficient - i.e., multiple IF-THENs instead of loops - but it's almost done.  i might ask for some tips on the next one, though.  Thanks!

(+2)

Sorry, took me a while to get to this but I think the loading times aren't too bad, as IJ said it's not much compared to other in-browser game engines.

The full-colour dithered art style does tend result in decks being on the bigger size in my experience. It sounds like you're on the right track in terms of keeping the size down though - basically, avoiding duplicating the same backgrounds is what should help the best. So using canvas widgets to add elements without having to duplicate the rest of the background, or enabling/disabling buttons depending on what interactions you should be able to do and such.