- Jan 25, 2023
- 68
- 113
Technically loading the lines take nanoseconds (so not worth noting) and opening multiple files do take some time for IO operation (so only relevant if you're using an HDD) and really still measured in milliseconds so not worth worrying about, not in Python at least. Having them compressed as RPA files would have more impact as it would need to deflate the files, and even that is barely worth notice.It's possible it has a minor effect on the time it takes for the game to actually launch, but I think this is primarily down to how many seperate files it needs to load.
The actual minor effect is that Ren'Py might count duplicate lines as distinct, so if your strategy is "make a run, then make a second one while skipping already seen scenes or dialogues to only see the changes" this might not work.
(Using if statements means that playing in skip mode will stop often but allow you to see what was effectively different, whereas duplicating the label might not allow "skip read text" to work on these scenes)
While having multiple files is much more orderly, some editors allow you to follow the control statements with a few clicks (so you could e.g. right click on "jump day2" and it would jump your cursor to where day2 is declared), although for Ren'Py you might need syntax highlight additions. So you should not immediately die. Now, two weeks later when you try to find what is giving a weird error and no longer remember what you wrote? That's a different story; no smart-ass editor will help you if you made it all in a single massive file.I'd die immediately if I had to deal with a file with like 200k lines in it.
Normally you end up with massive files when you're e.g. writing the story in Twine and
You must be registered to see the links
to Ren'Py.If you're working with Ren'Py files directly, then definitely keep them split up, which
You must be registered to see the links
the advised practice.