[QUESTION] How to make the game operating faster ?

jojoweb

Chimpa-Z
Joined
Jun 6, 2004
Messages
493
Location
Lyon, France
Hi !

Turns in my mod (see my signature) are very long to load. I have modified the SDK much, and included many new features. Have you any idea to make the turns loading faster ?

Thanks.
 
Make your code less sloppy ? ;)

Mean no offence... But you say your self, that you suspect your changes to cause slowliness... There is no magic "make it run faster" switch. Without knowing what you did, not much advice can be given.

You are the one who know what's going on.
Identifying what method(es) exactly take the most time and/or are called upon repeatedly would be a good first step. You should be able to do this by thinkig about your codes functionality. But debugger can help as well, if you are stuck.

Once you know where the bottle neck is, you can think how to adress it. There might be tons of little things piling up... Or maybe you have a combinatorial/complexity issue there... (Checking all possible combinations of ....)

Concider changing the code to use more memory for better running time - caching stuff that is used often.


Edit:
Not sure... If you mean the game takes lont time to start up (rather than a delay on AI turns) - Mods that have a lot of new art will start up faster if you package the art into a fpk.
This only affect the delay on games start up tho.
 
Make your code less sloppy ? ;)

Mean no offence... But you say your self, that you suspect your changes to cause slowliness... There is no magic "make it run faster" switch. Without knowing what you did, not much advice can be given.

You are the one who know what's going on.
Identifying what method(es) exactly take the most time and/or are called upon repeatedly would be a good first step. You should be able to do this by thinkig about your codes functionality. But debugger can help as well, if you are stuck.

Once you know where the bottle neck is, you can think how to adress it. There might be tons of little things piling up... Or maybe you have a combinatorial/complexity issue there... (Checking all possible combinations of ....)

Concider changing the code to use more memory for better running time - caching stuff that is used often.

Ok, thank you, you said somethings very basic and obvious, but it seems that i needed that :crazyeye:. It reoriented my work, and i have found some unnecessary functions which made the turns longer.
 
Back
Top Bottom