juagicre
juagicre

Reputation: 1084

Performance: Geometry VS Shape

I want to create a new object with my own shape/geometry, it is a 2D rectangular frame and will be replicated something like 30000-60000 times in the scene!

What is the most efficient way to create it, using Geometry or using Shape?

How those two different classes affect memory, cpu usage and gpu usage?

Upvotes: 1

Views: 347

Answers (1)

Ernesto Alfonso
Ernesto Alfonso

Reputation: 725

The difference between a shape and geometry is that geometry is a mathematical function that will be calculated each time it is generated, and then have to represent it on the screen as a bitmap. however the shape is already a bitmap that you just have to load it to memory and represent. This reflection also was made when it was decided to use the meshes and no geometries to represent elements in video games

Upvotes: 2

Related Questions