Is it true that scrolling is "faster" than moving objects?

Discussion and feedback on Construct 2

Post » Thu Jun 19, 2014 7:12 pm

In an article I was reading, it made the following statement which I'd like further clarification on.
10) Scroll to is faster than moving eveyting
Rare situation but it happened to me. Don't move every object if you can scroll your view.

My infinite "runner" game currently uses very specialized scrolling. I have a family of objects called "Scrollable" which move downwards as I "scroll" upwards. Should I re-do the scrolling so that it moves the view instead? How much of a performance boost might this give, and why? Is it worth it (I'm using CocoonJS to port it to mobile)?
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Fri Jun 20, 2014 11:05 am

It probably makes no difference. If you think it does, try making a measurement. If you can't measure a difference, it doesn't matter.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,238

Post » Fri Jun 20, 2014 7:57 pm

Yeah it doesn't make a bit of difference for me looks like :)

Thanks for the response.
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium and 2 guests