How can I decrease the number of total vertices when I want to build 1.8M blocks

Hello everyone

I want to know is it possible to decrease the number of vertices when I want to build the 1.8M blocks?
because the vertices fully loaded my RAM, and I want to know how can I solve this problem

here is my PG for 1.8 blocks:

Pg freeze and breaks… Kinda like if you made an infinite loop

1 Like

@aWeirdo Thanks a lot for helping me.

I didn’t understand how can I breaks them?

Ok, at my home pc now which has a bit more juice :slight_smile:

Now that i can see your code,
i realised M stands for million…
your PG consumes 2.5 GB memory on CPU side,
4.45 GB on GPU side.

SPS is super cool and efficient piece of coding, but it has a downside, particles (or meshes added) has their geometry duplicated for every particle you add. Adding SO many will eat a big chunk of memory! :smiley:

Here i ported it (kinda) to Thin Instances…
0.4 GB on CPU
0.55 GB on GPU

Some devices will 100% still hit a limit of some kind, like array/buffer sizes, etc

Splitting it into chunks of 200 000 instances as you did originally, and reducing buffer sizes at cost of drawcalls, i’m even able to load it on my phone, (2-3 fps however, it actually loads)


Thank you so much @aWeirdo
You are great. thanks lot for helping me and explain for me what should I do.

:pray: :pray: :pray: