Question about objects performance

M

m1s3ry

Guest
Hey, I have a small doubt.
We all know that putting too many instances of an object, the performance will suffer greatly. I try to use Tilesets all I can but some times I just need the collisions and I have too many objects. While my performance is always above 60fps, I'm trying to make a game that most people can play at full speed, so a doubt came out.
If instead of using, let's say, 100 objects for the floor, I only use one object stretched by 100, make it invisible and draw tiles, should the performance have a little boost?
 

Simon Gust

Member
Stretched objects are a great performance boost. There are faster methods without using objects but this is good enough. Stretch them as large as possible it won't increase collision checks on an increased object.
 
Top