How do I optimize my game performance based on looting items?

0 favourites
  • 2 posts
From the Asset Store
Perfect, complete, easy to use to use, out-of-the-box inventory system
  • I'm seeking advice for my game development project. I've been working on enhancing the Collision detection for items that players can pick up in my game. Right now there's 6,000+ detections per second. That seems very high, but I am not sure if it is.

    I'm torn between utilizing Collision detection for item pickup or implementing a hovering for more details and a click on (with distance from loot calculation) mechanism trigger.

    Performance is a concern, and I'm unsure if my current approach is optimal for my game's performance. I'd appreciate advice on the best approach for Collision detection and how to optimize it without negatively impacting performance.

    I put together a Youtube video to narrate my work.

    youtube.com/watch

    Update: I did test the hover over and automatically loot technique. The CPU/GPU did not go up nearly to to the level of collision detection so I think I have my answer but I am not sure. I tested it with 30 loot items on the screen.

    Thanks for any advice you have.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Someone would have to take a closer look at the file but the event you enabled is a trigger once event, it shouldn't be triggering all the overlap checks all of a sudden. I think the poly checks bit is the important one for performance, the field below the one you are mentioning in the video. I don't know how it jumped from 0 to such a higher number by enabling that event.

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