Announcement

Collapse
No announcement yet.

How expensive are shape traces?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How expensive are shape traces?

    Right now I have a capsule trace (sweep) that happens every tick. I assume sweep traces are relatively costly so would something like using a box overlap (the size of the capsule & its path) as a trigger for the capsule sweep be counter productive or a more efficient approach?
    Am I worrying over nothing?

    #2
    I'd imagine that a shape trace is not that expensive, since it is pretty similar to having a collision shape like a capsule and seeing where it overlaps/blocks
    , though I honestly don't know, so don't quote me on that.
    Marketplace Assets

    Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
    Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
    Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

    Comment


      #3
      Thanks Jamendxman3, again

      I couldn't find any mentions of performance within the documentation and from google searches so maybe it's nothing. I'll stop worrying about it then, leave as is and move on.

      Thanks again for the help.

      Comment


        #4
        Do a test and bump up the number of traces you are doing and see what happens, thats usually the best way to test things since everybodies computer will perform differently.

        Comment


          #5
          Cheers ZoltanJr,

          Followed your advice, tried it out and it seems I was worrying for no reason after-all.
          I fired multiple capsule traces off in random directions & distances, ramping the amount of traces each time.

          You can see it in action here in these videos I made:
          Running once every 2 seconds: https://vid.me/6b2m
          Running every tick: https://vid.me/Ex3d

          Also pic of what's going on:
          Click image for larger version

Name:	CapsuleTraceTests8.jpg
Views:	1
Size:	469.7 KB
ID:	1087192

          When tracing for StaticWorld; somewhere between 500 and 1000 simultaneous capsule traces seems to drop performance a little on more complex meshes (like the stairs in my example). Other things like walls & cubes didn't seem to have any impact at all, even up to and beyond 2500 traces/tick (which is when I gave up trying).

          Since I was looking at ~5 capsule traces max, and 500 traces seemed to have no issues, I think I'm ok.

          Thanks again.
          Last edited by eanandroid; 09-07-2015, 03:56 PM. Reason: added a word

          Comment


            #6
            Best way to learn is to break it!

            Comment

            Working...
            X