New type of object

Discussion and feedback on Construct 2

Post » Sun Oct 14, 2012 11:46 am

@squiddster
Tiledbg was faster at drawing in CC, and last I checked my testing showed the same is true in C2.   It's only a bit faster though.

@ElRei
You could try your hand at plugin making to make such an object, reusing code from Tiledbg and sprite.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Sun Oct 14, 2012 1:58 pm

For the record: if you have a sprite with a single animation frame with a bounding box collision mask, it should have identical performance to a tiled background. It will both render and collision test with almost the same code, so one is probably not faster than the other.

The biggest performance difference people come across is using grids of sprites vs. using tiled backgrounds. A single tiled background showing a 10x10 grid of tiles renders as fast as a single sprite. However a 10x10 grid of sprites will render 100 times slower, due to there being 100 sprites. The manual warns about this in Performance Tips.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: mystazsea and 14 guests