#How can i optimize the scripts?
100 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I think this is where you drop your scripts that cause you the most performance issues
and that's also default behavior regardless of scripts if you have a lot of mods
a
only the ones you think cause the most issues
Paste version of armornweapons.js from @spring belfry
Paste version of create.js from @spring belfry
Paste version of decostuff.js from @spring belfry
Paste version of presteam_si_random.js from @spring belfry
Paste version of removed_recipes.js from @spring belfry
Do you still have performance issues if you remove the recipe scripts?
yeah try that
try to look for which scripts specifically cause you the most performance issues
I believe recipes should at most cause longer load time on startup/first load
yea thats the issue
also without these big scripts i dont lag anymore
i might have to minimize them
wait so do you have longer world load times everytime you join a world? or just during the first time
yea also that
but i still have that original problem with them
but without them i have neither problem
honestly I'm not sure if there's much you can do
wait try removing the removed recipes.js one
aight
see if that improves load times AFTER the first time
yeah that's what I thought since it's just spam loop through the entire list of items
but idk how we can optimize looping
ill try to minimize it to see if that helps
minimized first loading time is 25 seconds
I mean 25-35 seconds isn't that bad if we have no real solutions🤷♂️
yea
i know thats why ill try to optimize it
my specs are a rtx 5060 intel i5 ultra 225 f and 32 gigs of ddr5 i say its pretty good
You could just straight up remove the loops 💀
The one time ai is alright for tasks like this
are you using jei+emi?
remove EMI and see how much it changes things
but isnt tmrv dependant on emi
but you are using jei?
rn im using tmrv and emi
the load times are about equal
also the "limbo" state of the world is too
weird then
well atleast all recipe types laod now
I would just remove a bunch of decorative mods
you seem to be removing a lot of items from them anyway
do you have every compat?
what
i guess not then
automate what?
holy
if you mean replacing loops with just writing the removal one by one
wait
it wouldnt be better
yea
mb then
well i guess i will try to minimze them and get rid of some recipes that are no longer present
i ran the decostuff file through a beautifier and now its 100 kb smaller
ig i will minize the scripts when im uploading the pack and if anybody want to take a look inside they could look into the repo