HUGE Performance issues when colliding with tiled solids

0 favourites
  • 8 posts
From the Asset Store
A terrifying package of 101 professional-quality sound effects for monsters, small beasts, huge behemoths, dragons and m
  • Hi, I've been having this issue for a while,

    I have a sprite with the 8 direction behaviour remapped to wasd. at random times when I'm riding along a tiled wall 32x32. It brings the game right down to a crawl, even on high end PC's.

    There aren't very many options for tiles so I'm guessing its to do with the 8 behaviour or perhaps the rather large layout size.8000x3050

    Any ideas ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That shouldn't be slow. Can you share a .capx demonstrating the problem?

  • Thanks for the response, C2 has been life changing to me ,

    I cant promise its pretty I'm afraid that I may be the C2 target audeince : P of no experience.

    There is only one tiled wall and also the (static scenery) cars seem to be doing this (solid behaviours)

    I tried messing with the bounding boxes but...

    I wasn't at the stage of documenting things well when I made this but the main offenders seem to be the wall , zx spectrum colored cars and the player sprite.

    Another issue I can think of is my habit of making everything on one huge layer .. I hope not

  • It looks like it's caused by the Pathfinding behavior. It's hard to offer any more advice unless you reproduce the problem in a new empty project - you have a huge project with a lot going on and it would be very hard to prove it's not something in your own events causing it. Have a read of Performance Tips.

  • Thanks, ill mess about with path finding see if that helps (deleting capx)

  • I checked your game out in debug, and the profile is showing that the group "turrets" is spiking up to 50% CPU while you are colliding with the tiledbackground. So I disabled that group and got a huge performance boost, but the slowdown was still happening. The next highest group "zombie" was still using up to 40% CPU and so I disabled the 'every .25 seconds ->pathfinding' and the game ran quite smoothly.

    So obviously you just have a few issues to work out with your enemy pathfinding, and the "turret"(not even sure what this group is meant to do). I suggest trying not to call the pathfinding.findpath so often.

  • Ok thanks so much that's amazing information and a lesson learned, The turret is the enemy with the blue tracking laser.

    Sorry I couldn't keep the capx up., Other reasons

  • you dont need to pathfind every tick or 0.25 its enough to place it at start of layout it automatically create the path to be followed or at creation of the charachter...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)