-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.x Speedups #1271
1.x Speedups #1271
Conversation
First improvement:
|
starting to address #1239, doing some initial observations as I try and step through from that. I've added timestamps to Umm creating one single timeline folder probably shouldn't be calling ` |
wait... omg... it's calling that for every folder... the count of calls goes up for each new folder created. no wonder it keeps getting slower and slower! |
Further observations tonight: every with the comments syaing 'when files got deleted and on program start', its called once in the read in first before saving seems a bit redundant to me, so might readjust that. really should only genuinely happen in the editor on startup, and all the other functions be write-only. |
note to myself since I need to leave: the folder properties metadata isn't included in how this is built at the moment. needs to be added for Editor to use both for folder colors, as well as for preserving empty folders. can then be stripped out later for the runtime dictionaries because they don't matter there. also will need to add some additional sorting properties for editor, for when its exploded back into the folders.json organization might be possible to add finer drag and drop sorting into the folder list with what I have in mind, though, so you can actually rearrange timelines in the same folder |
I just made a maze generator with path finding, so I feel that recursion hate. Can't wait for the fix, really appreciate the effort! |
ok hmm trying to put the rest of what's in DialogicClass.prepare() (which is where I was doing it only temporarily for step testing) into DialogicResources.get_resource_folder_flat_structure() makes the whole thing crash with cyclic errors, which seems to be a static typing issue with GDScript in 3.x, gotta think through that a bit differently then |
todo: |
reopened the bug #1278 just so i can do a verify check to make sure that works propelry with these changes |
need to be able to reverify colors in Characters if somehting changes, becuse otherwise it'll revert until full reload |
reminder to myself that I will need to add some checks and documentation because this introduces the minorest of breaking changes that forward slashes will be disallowed in folder and file names and need to be stripped on names and renames - if they aren't already? might be alrady idk I'll need to check |
todo: make sure loading saves works |
current things needing to be addressed before this can be merged:
current things that would be nice too, but I'm not marking them as blocking:
|
TODO: since I found a much simpler way of doing the dropdown menus, gotta do it for the other pickers too |
… fix extra calls to saving from the set meta function
f51413b
to
29a6c64
Compare
Not sure how actively this is being worked on right now (thanks for all the work so far!), or if I'll be upgrading to 2.x anyway before I finish development, but: I noticed that 1.4.5 is loading every character file, apparently from disk, every time any character is looked up. ( |
…e folders on runtime, theyre not needed there
Various fixes I've had in mind for improving Dialogic 1.x speed, which I had initally put aside when the Dialogic 2 development started but they're good for long term maintenance for people that for one reason or another can't move off of Godot 3