edited August 2020 in ORK Scripting
image

We've noticed a significant spike when loading a new scene that we're trying to debug!

The weird thing is that we can't figure out why there are so many calls!

1485 calls for LearnAbility.Init for 15 enemies; which means there are 99 calls per combatant, for some reason.

Any ideas as to what could be causing this? We're running a fairly old version of ORK at the moment, so we'll also risk an update and see if performance improves and report back.
Post edited by Kirb on
Tactics RPG Grid Battle System for ORK
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
  • edited August 2020
    Still occurs with the newest update! (We were 2.26, so pretty far behind!)

    Also on a side note, 2.27, while an excellent update; took quite a toll on the project. It broke almost every variable condition in the game! Ouch! Greatly enjoying the QoL and performance updates, though!
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • I'll look into it - are you using environmental damage dealers?

    As for the 2.27.0 update messing with your variable conditions - yeah, sorry about that :)
    But there was a warning about potential incompatibilities in the release notes.

    Did you update version by version or jumped straight to the latest version? Might be that the data update issue in 2.27.0 is fixed when updating directly to 2.29.x.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited August 2020
    No worries; gave me a chance to refactor a lot of my variable usage! c: I had just forgotten about the warning when I had updated. We jumped directly to 2.29x.


    Also, yep, we use environmental damage dealers exclusively for all of our hitboxes!
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • Hm, yeah, seems like this is happening quite often on initialization (depending on how many abilities are learned at that time) - I made some changes to streamline this a bit more. Will also check out damage dealers :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks, it's super appreciated! :D The way we're set up with environmental damage dealers, we don't actually even particularly need anything to be learned manually, it's mostly just an extra step for us.

    I've currently got all enemies set to a single generic 'Enemy' class, and they all learn around about 12 generic abilities to account for the different kinds of damage they may need. ('Generic Enemy Damage' ability is Damage = Enemy Strength.) ('Generic Enemy Damage x2' ability is Damage = Enemy Strength x2) etc.

    Our player combatant has the bulk of learned abilities, since there are so many spells that require different formulas/attributes.

    Would having an option for all abilities to be always available for every combatant help performance by 'skipping' the learn phase? (or would that actually just make it worse...)

    Anyway, I hope this extra context is helpful!
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • No, they still have to learn/add them - but I've already changed how that's handled, i.e. when adding a bunch of abilities it'll no longer recreate them after each one.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited August 2020
    Gotcha! Looking forward to the fix. :D

    It was a fairly recent development, I'm not sure when it started happening; I noticed it because upon the Fade-In on scene change, the black fade animation literally stutters for a moment while in mid-fade, making it really noticeable.
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
Sign In or Register to comment.