Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to prevent Show Collision slowdown?

I'm building a game using Paper2D. I have my tileset set up with collision, and I've created a tilemap. It's fairly large, 256x128 tiles. I have my pawn wired up and it moves around and collides with the map collision just fine. When I enable "Show Collision", it draws the collision wireframe, but the framerate of my game drops from ~800 to ~15 and stat unit shows GPU taking ~70ms per tick (up from ~1). Is there any way avoid this slowdown? Given that each tile has a separate collision box, is there a way to configure my camera to only draw the collision boxes that are on screen? (I'm assuming the slowdown comes from drawing all the collision for the entire map.)

Any help is greatly appreciated.

Update: Looking into it further, it appears this may be an issue somewhere inside TileMap, if I'm reading the profiler correctly alt text

Product Version: UE 4.18
capture.png (27.7 kB)
more ▼

asked Mar 11 '18 at 06:56 PM in Rendering

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question