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

    Set Color: Changing Opacity Values is Expensive

    Scheduled Pinned Locked Moved Unsolved
    Bug Reports
    1
    3
    126
    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

      An object of about the attached size, with a colour blend applied to it:

      #0088FF66

      Then have it change with a Set Color of 0 duration to:

      #00E3FFFF

      And then use any animation you like within another Set Color for a couple of seconds to fade back to:

      #0088FFSS

      Have 5 of these about 1/3rd of a screen apart, on a ground. Get a ball, roll over them to activate them, one by one.

      Now watch the ball stutter every now and then, not everytime, but way more than 1 in 10 activations, as it activates this simple change to these things.

      I don't know if you have any tooling, @Hamed, for profiling these types of rendering changes, but this seems oddly very expensive to me for something that is a very simple change.

      Doesn't matter if using linear or exponential or any other form of animation. You can even turn that off, and just do an instant swap between color states. It still does it.

      It's not the physics contact, I've turned off this Set Color and activated particles and other more complex things with the same physics rig without these stutters.

      It is the Set Color activity that's causing the stutters.

      0_1510782115535_BonusBox_On.png

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

        I've done some more testing. This could be caused by screen pop-in. Whatever you're doing with objects not onscreen before then putting them on screen during scrolling, that could be causing this.

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

          Yes, 100%, this is caused by screen pop-in during scrolling.

          Something isn't efficient in that system.

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