Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. tips on optimizing game?

tips on optimizing game?

Scheduled Pinned Locked Moved Help and Support
6 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • bosswaveB Offline
    bosswaveB Offline
    bosswave
    wrote on last edited by
    #1

    I like polishing my game as much as I can in every way possible, but I find I’m probably being inefficient in terms of the amount of behaviors and timers I use.

    I only have one timer in my entire game set to 0 seconds and it’s only in charge of calculating and executing player movement. I have roughly 18 weapons with their own timers(between 0.05 and 0.45 seconds), but only one timer is ever active at a time. Every enemy (roughly 8 at a time) has a timer set to 0.4 seconds that calculates the player direction and executes the enemy’s behavior.

    My game usually runs just fine (I only notice a frame drop if multiple things happen to explode at once), but it tends to crash after I’ve replayed the level about 5 or more times. Could having too many behaviors cause this as well?

    Aidan_FireA 1 Reply Last reply
    0
    • bosswaveB bosswave

      I like polishing my game as much as I can in every way possible, but I find I’m probably being inefficient in terms of the amount of behaviors and timers I use.

      I only have one timer in my entire game set to 0 seconds and it’s only in charge of calculating and executing player movement. I have roughly 18 weapons with their own timers(between 0.05 and 0.45 seconds), but only one timer is ever active at a time. Every enemy (roughly 8 at a time) has a timer set to 0.4 seconds that calculates the player direction and executes the enemy’s behavior.

      My game usually runs just fine (I only notice a frame drop if multiple things happen to explode at once), but it tends to crash after I’ve replayed the level about 5 or more times. Could having too many behaviors cause this as well?

      Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by Aidan_Fire
      #2

      @bosswave What iPad are you using? After you’ve replayed the level as in restarted it without using the hyperPad menu? What is the world/scenery made of? Do you have tonnes of objects making it up, or just a few larger objects? Is it anything in particular you’re doing before the crash, or it just happens randomly?

      bosswaveB 1 Reply Last reply
      0
      • Aidan_FireA Aidan_Fire

        @bosswave What iPad are you using? After you’ve replayed the level as in restarted it without using the hyperPad menu? What is the world/scenery made of? Do you have tonnes of objects making it up, or just a few larger objects? Is it anything in particular you’re doing before the crash, or it just happens randomly?

        bosswaveB Offline
        bosswaveB Offline
        bosswave
        wrote on last edited by bosswave
        #3

        @Aidan_Fire I believe it’s a second generation iPad Air.

        And yes, the scene restarts and randomly generates a new level when you complete it.

        The scene is currently composed of roughly 350 wall objects that form the level. They all use the same exact asset. They each currently have 13 behaviors but I plan on overhauling level generation in such a way that they will all have none, and so that wall objects that cannot be interacted with are made scenery.

        The crash happens randomly. Sometimes upon restarting the scene, sometimes when picking up an item in-game, sometimes when I’m doing nothing. But it never happens the first 2 or 3 “levels”.

        Edit: if it counts for anything, I set up a loop and did a few runs and the amount of wall objects ranges between 175 and 350 with no notable change in performance.

        Aidan_FireA 1 Reply Last reply
        0
        • bosswaveB bosswave

          @Aidan_Fire I believe it’s a second generation iPad Air.

          And yes, the scene restarts and randomly generates a new level when you complete it.

          The scene is currently composed of roughly 350 wall objects that form the level. They all use the same exact asset. They each currently have 13 behaviors but I plan on overhauling level generation in such a way that they will all have none, and so that wall objects that cannot be interacted with are made scenery.

          The crash happens randomly. Sometimes upon restarting the scene, sometimes when picking up an item in-game, sometimes when I’m doing nothing. But it never happens the first 2 or 3 “levels”.

          Edit: if it counts for anything, I set up a loop and did a few runs and the amount of wall objects ranges between 175 and 350 with no notable change in performance.

          Aidan_FireA Offline
          Aidan_FireA Offline
          Aidan_Fire
          wrote on last edited by Aidan_Fire
          #4

          @bosswave That is a lot of objects and hyperPad isn’t very good at handling lots of different objects. I’m not sure exactly how your worlds generate, but is it possible to combine some groups of them into one large object? Another option might be to have the level saved in an array or something, and only load it as you enter the area but that would take a lot of effort and might not be worth it. Possibly silly question, but could you be accidentally leaving some of the previous level loaded somehow? Can I maybe try it?

          bosswaveB 1 Reply Last reply
          0
          • Aidan_FireA Aidan_Fire

            @bosswave That is a lot of objects and hyperPad isn’t very good at handling lots of different objects. I’m not sure exactly how your worlds generate, but is it possible to combine some groups of them into one large object? Another option might be to have the level saved in an array or something, and only load it as you enter the area but that would take a lot of effort and might not be worth it. Possibly silly question, but could you be accidentally leaving some of the previous level loaded somehow? Can I maybe try it?

            bosswaveB Offline
            bosswaveB Offline
            bosswave
            wrote on last edited by
            #5

            @Aidan_Fire I figured it was a lot. I’m probably going to end up reducing the size of my levels or just find a way to more efficiently overhaul me level generation (just gotta find the motivation to get around to it).

            I could send you the project but fair warning, there’s a lot going on. How would I share it? Through email?

            Aidan_FireA 1 Reply Last reply
            0
            • bosswaveB bosswave

              @Aidan_Fire I figured it was a lot. I’m probably going to end up reducing the size of my levels or just find a way to more efficiently overhaul me level generation (just gotta find the motivation to get around to it).

              I could send you the project but fair warning, there’s a lot going on. How would I share it? Through email?

              Aidan_FireA Offline
              Aidan_FireA Offline
              Aidan_Fire
              wrote on last edited by
              #6

              @bosswave hyperPad DM?

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Search