Closed richelbilderbeek closed 5 years ago
Well done!
Now we see in the Travis CI log:
97.24s$ time ./djog_unos_2018 --profiling
[...]
real 1m37.234s
user 2m5.632s
sys 0m7.252s
Drawback here is that the experiment is still imperfect, as new agents get added and removed all the time. Cleaner would be is to have a constant, big amount of agents.
Setup a better experiment with the --profile
flag (great addition!), in which there are e.g. 100 tiles, 1000 agents, spawning turned off, and -if possible- that they do never interact. Next step after solving this :+1:
What do you mean with never interact?
Sorry for the confusion: I meant that that the agents do not eat/damage each other, so that their number remains constant.
When done, close this Issue and continue at #495 :+1:
Is your feature request related to a problem? Please describe.
Currently, the game gets slower when there are more agents.
@robkruger, to person responsible for profiling, added profiling to the Travis log:
There is a clear hint which two functions are causing the slowness of the game. But there are some things missing.
Describe the solution you'd like
time ./djog_unos_2018 --short
someplace to see how long the actual test lasta--short
to run approx one minute on Travis, to get a better profileThen you are prepared to do some decent profiling, as you will be able to measure if a change in the code did indeed speed up the code :+1:
Describe alternatives you've considered
None.
Additional context
None.