Do more layouts create lag?

Get help using Construct 2

Post » Fri Apr 25, 2014 12:28 am

Pretty self explanatory
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Post » Fri Apr 25, 2014 1:02 am

no, they dont :)
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Fri Apr 25, 2014 1:10 am

@nimos100 Thanks. In that case, what does cause lag?
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Post » Fri Apr 25, 2014 2:07 am

Lag is usually caused by too much work on the CPU or GPU.

CPU lag is caused by running too many calculations - e.g. pathfinding, off-screen objects
GPU lag is caused by rendering too many objects, effects, or running into a fillrate limitation (Too many pixels drawn to the screen every tick)
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Fri Apr 25, 2014 2:08 am

HZGaming wrote:Thanks. In that case, what does cause lag?


It kind of depend on your game I think. But the most normal reasons I think are the following:

1. Bad coding
This is code that is not optimized, for instant doing a lot of checks at points where they are not needed. Not using functions etc.

2. Effects
Effects that are applied to objects, If you use to many or use them wrong it can slow down your game a lot.

3. Objects
Pretty self explaining, but if you use a lot of objects.

4. Wrong sizes of objects
If you just use "random" sizes of object so they are not cropped, it will also reduce the amount of objects you can use.

5. Collision detection
Especially if you use a lot, there are some discussions around the forum regarding this. As I believe most people at some point run into this problem.

Think that's the most normal ones, there are probably some other ones but cant think of them now :D
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, kainrazial and 8 guests