Maximum number of object faces in scene

Post Reply
Boris94
Posts: 6
Joined: Mon Nov 18, 2019 10:22 am

Maximum number of object faces in scene

Post by Boris94 » Sat Dec 14, 2019 8:28 pm

I am spawning multiple objects in scene and after some number of them they just stop rendering, is there some limit? It looks like there can be about 1.3mil faces in the scene and after that new objects just dont render.

Example:
I am spawning 100 models into scene. Each model has about 70k faces. I first run loop, where i spawn all of them and then i start new loop with stepSimulation.

Code: Select all

    for i in range(1, 100):
        startPos = [0.5, 0, i]
        startOrientation = p.getQuaternionFromEuler([0, 0, 0])
        partID[firstPos] = p.loadURDF(data[2][1], startPos, startOrientation)

Code: Select all

    for i in range(100000):
        p.stepSimulation()
        time.sleep(1. / 240.)

    p.disconnect()
https://imgur.com/a/yH7qkd6

As you can see in the image, there is 17 of them and there should be 100 of them. Is there some way how i could increase this limit? I tested it on multiple PCs and result is always same, so this is not HW problem.

Post Reply