hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Spawning Object Clean up: Expensive?

    Scheduled Pinned Locked Moved
    Help and Support
    3
    4
    132
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Deeeds
      last edited by

      I've noticed some delays and lags that look to be timed with spawned object clean up.

      I'm spawning lots of scoring graphics, and they only last a short time, then die, roughly all at around the same time, at which point there's several frames of stutter/lag and slight unresponsiveness to touch noticeable.

      1 Reply Last reply Reply Quote 0
      • T
        Thecheater887
        last edited by

        If they all die at once, you'll see the same toll as if they all spawned at once. Try killing one or two per frame.

        D 1 Reply Last reply Reply Quote 0
        • D
          Deeeds @Thecheater887
          last edited by

          @Thecheater887 I doubt that's true. I instance them all at exactly the same time... no stutter. No slowdowns, nothing. Not even a hiccup.

          Aidan_FireA 1 Reply Last reply Reply Quote 0
          • Aidan_FireA
            Aidan_Fire @Deeeds
            last edited by

            @Deeeds So maybe destroying objects is slower than spawning them. Either way @Thecheater887’s idea of just not killing them all at the exact same time should work. If you want them to look all destroyed at the same time, make them hide themselves all at the same time, then destroy themselves over a short time, probably one at a time.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post