Code center > Darwinbots Program Source Code

No fix for ghost collisions with planet eaters necissary

<< < (5/5)

Botsareus:
It is not that bad Numsgil, I think we can live with 20% slower code... I am thinking it is the combination of all the new mods together, and there is no specific bottleneck... Thanks for your help, at least I learned proper bottleneck finding skills using a profiler from this experiment.

Peter:
No specific bottleneck is weird. Uniform slow code is rare.

Botsareus:
I can not find anything. Trust me, I looked. All the functions I looked at are taking as much % as I expect them to take. Also, I can not find any that I can optimize to be faster.

Botsareus:
Numsgil, I found something very interesting. Apparently "readtie" was excepting the counter from UpdateBots byref and then changing it. Causing the loop to repeat or even hang with half the loop never being executed. Very ugly. Fixed. I hope this one improves speed.

Botsareus:
Wow, I put byvals everywhere it was safe to do and the program is flying now.

Navigation

[0] Message Index

[*] Previous page

Go to full version