Reduce Fps Lag With Many Objects

Discussion in 'How Can I...?' started by onetap, Sep 6, 2020.

  1. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    I have around 40 objects in a scene that have physics and are moving, this is creating a lot of drop in FPS. What is the best way to resolve this? any tips or tricks? 40 isn't a great number and Buildbox doesn't seem to like the higher number of objects in a scene at once.
     
  2. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    I had the same issue with one of my games. What I ended up doing was swapping a lot of the 3D objects with 2D objects. This solved my issue but may not work in your case.
     
  3. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360
    • Split that scene into 2 or 3 scenes so the amount of objects per scene is lower
    • Build your level in Maya, Blender or any 3D modeling program and import it as a hole
    • Disable your shadows or use as few spotlights / point lights as possible
     
  4. DanteSavy

    DanteSavy Boxer

    Joined:
    Jul 17, 2020
    Messages:
    16
    Likes Received:
    6
    I solved by reducing the vertex numbers of each mesh after I reduced the size of all the scenes.
     
    Vlad-NY likes this.
  5. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    How do you reduce the number of vertices of each mesh? / what do you mean by reduce scene size?
     
  6. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360




     
  7. DanteSavy

    DanteSavy Boxer

    Joined:
    Jul 17, 2020
    Messages:
    16
    Likes Received:
    6
    Perfect. I was going to make a video of you. But there are many on the internet. Reduce the mesh, you shouldn't have any more problems.
     
  8. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360
    If you have time... A up to date tutorial would be best
     
  9. DanteSavy

    DanteSavy Boxer

    Joined:
    Jul 17, 2020
    Messages:
    16
    Likes Received:
    6
     
    Vlad-NY and onetap like this.
  10. Charles Rozén

    Charles Rozén Boxer

    Joined:
    Jul 10, 2020
    Messages:
    46
    Likes Received:
    6
    Can you take screenshots of your objects that you have in yourt scene?Maybe your objects have to many polygons and neds to be reduced
     
  11. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    Awesome, curious once you’ve done this, do you then drop the new mesh into the old one in Buildbox ? Will it then remove the old mesh? Will the old png texture still fit the new mesh?
     
  12. DanteSavy

    DanteSavy Boxer

    Joined:
    Jul 17, 2020
    Messages:
    16
    Likes Received:
    6
    remove the old mesh in bb. The old texture will fit perfectly. Works on all kinds of games. Already tested also on bb. Do not decrease the vertices too much it can also happen that the texture no longer goes and the final result will be ugly to see.
     
  13. Charles Rozén

    Charles Rozén Boxer

    Joined:
    Jul 10, 2020
    Messages:
    46
    Likes Received:
    6
    When you reduce the mesh it might be a good idea that you create a new uvwmap. In that way you can get rid of weird stretching in your mesh.
     
  14. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    what's the best number of vertices to decrease to, or does it vary?
     
  15. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360
    You don't have a "magic number" it all depends on your object, how do you want it to look like and so so many more factors, gameplay style, the overall feeling of the game, color palette etc
     
    onetap likes this.
  16. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    Awesome thank you, I assume your tutorial will work with .obj files as well as FBX? also does it matter on the size of the object, is bigger worse?
     
    Last edited: Sep 8, 2020
  17. DanteSavy

    DanteSavy Boxer

    Joined:
    Jul 17, 2020
    Messages:
    16
    Likes Received:
    6
    By reducing the mesh you can also create a new UV map. Re-creating a mesh with fewer faces is better than decimating.
    Decimating a character mesh can also be done but doing so would distort the rig, but it works.
    It can decimate any type of obj, fbx, dae, etc.
    If you need more tutorials for other things just ask.
     

Share This Page