Question about performance

Just started using Construct 2? Post your questions here

Post » Fri Aug 15, 2014 11:45 am

Hello,

I am currently making a game based on an Open World, for get it simple i make all the game ( Graphics and actions ) only on one Layout and Event sheet ), no problem for this actually ...

But my question is ... When it will be lagging ...

For the moment i don't get any problem ( world based on 12000x12000), but i would like to know if someone have already make an open world like this and push it to the limit of the engine.

Thanks for your answer =)
B
21
S
9
G
3
Posts: 70
Reputation: 2,722

Post » Fri Aug 15, 2014 12:17 pm

It ofcourse depends on what platform you're aiming at..
I guess the limit lies more with the machine running the game than the engine with which it was made..

Something running without lag on your pc, does not mean it will not lag on any pc..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Aug 15, 2014 12:30 pm

Hum thanks for your answer Stain ... It's what i think too =s ... i will test the limits for my pc then make stats ^^
B
21
S
9
G
3
Posts: 70
Reputation: 2,722

Post » Fri Aug 15, 2014 12:52 pm

You should not use only one event sheet, it will not help when you need more organisation, also if you really think you will go into performance issues, do it this way:

First make a working prototype at a smaller scale, just working, do not think about optimising yet
Then try to organise it well, so you can modify the needed part easily, read them quickly, and know where everything is
Then see if there are redundancy of actions or conditions (you should not have to recheck the value of something twice inside the all event system, you can if that helps you organise it.)
Then see if there are checks or actions that are done in case where it does not matter (exemple, checking if an the player is alive constantly is not needed, just check that when needed, same goes for updating the hud or other things.), if you do not find them all, it is not a problem at all, it is just to make the events of the prototype easy to read, and to write, yet performant enough.
Do performances measurement, see if you need every element of the game to exist (pretty sure you don t need every thing to exist everywhere on the map at everytime), so if there is a problem, try to deactivate behavior or to destroy uneeded object, keep in mind that when you are not targetting old mobiles, performances are pretty good in C2 so don t go into try to optimise every event and go into micro optimisation, not only it takes time for absolutelly nothing and makes everything harder to read, but also it won t help you learn how to design correctly your game, try to see what is needed and when it is needed, so you can make the device have less calculations to do.

Tl;dr : test early, see if it is working, organize, see if it can be optimised by not checking useless things, do not try to optimise every single event you make, learn to see what could cause a performance drop in which case, so you don t fall into the trap a lot of people fall into: "optimising everything, except what needs to be optimised"

And remember, working code is your first priority, then organisation, then flexibilty, then performances adjustement, if you have a optimised code that is unreadeable nor flexible, you are going to have a worse time that if you have a code that is clean but needs performances adjustement.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Fri Aug 15, 2014 1:10 pm

The size of the layout matters much less than other things. See: Performance Tips
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests