Optimising - Too many objects?

Discussion and feedback on Construct 2

Post » Thu Jan 10, 2013 3:24 pm

I've read through the performance tips and other posts on optimising, but I'm not sure about 1 thing.

My game is running fine at 60fps, but it's jerky on Firefox (I hear this may be a FF issue rather than my game) and runs below 40fps on an older PC (with no graphics card, so perhaps this isn't a surprise). However, I decided to do some optimising and I have one question.

My game had 1100 objects (I reduced this to 700), but now I need to add more. Most of these are text objects on seperate screens to the arcade screen (the only one which NEEDS to be running at 60fps, the others are static so fps isn't important).

If I add extra objects which are off-screen and not even referenced by any events from the arcade screen, will they have any performance impact on the arcade screen? Is there any internal process in C2 which does checks or anything on objects which are basically inactive?

I should point out that there's no way my game will run on mobiles, so the issue of memory probably isn't important.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Thu Jan 10, 2013 3:40 pm

Off-screen objects that are not referenced by events will have negligable performance impact. If you want to check yourself, try removing them and seeing if you can measure a difference in the framerate.Ashley2013-01-10 15:40:30
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Jan 10, 2013 3:52 pm

I did remove 400 text objects and saw no change, so I thought as much. Thanks Ashley.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to Construct 2 General

Who is online

Users browsing this forum: Baidu [Spider], MilkGames and 12 guests