--- Log opened Thu Sep 05 00:00:11 2013 20130905 00:25:00-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 276 seconds] 20130905 00:47:45-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 276 seconds] 20130905 00:53:19-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130905 01:20:47-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-umc-dev 20130905 01:44:37-!- mattsc [~mattsc@fw.hia.nrc.ca] has quit [Quit: Ciao] 20130905 01:48:43< AI0867> bumbadadabum: as vultraz said, don't do that 20130905 02:11:31-!- bumbadadabum [~bumba@d155109.upc-d.chello.nl] has quit [Quit: bye] 20130905 03:05:16-!- mattsc [~mattsc@154.20.32.246] has joined #wesnoth-umc-dev 20130905 03:06:55-!- irker615 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20130905 04:44:50-!- ancestral [~ancestral@65-128-232-98.mpls.qwest.net] has joined #wesnoth-umc-dev 20130905 04:59:18-!- irker675 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20130905 04:59:18< irker675> AI-Demos: mattsc master * r6632561 / lua/ai_helper.lua : Internal rewrite of ai_helper.get_attacks() - http://git.io/dXAC8A 20130905 04:59:20< irker675> This is much faster than the previous version. No change in 20130905 04:59:21< irker675> functioniality. 20130905 05:02:56< vultraz> mattsc: how do you determine function speed? 20130905 05:04:26< _8680_> vultraz: By calling the function and timing it? 20130905 05:06:05< vultraz> but how do you accurately time it 20130905 05:06:36< _8680_> vultraz: Or in the context of comparing two functions’ speeds, by calling them many times and timing them (synthetic benchmarking), or by running the whole program with the different functions many times and timing it (realistic benchmarking), or by running the program and seeing how much time it spends in each function (profiling). 20130905 05:07:02< _8680_> vultraz: By recording the time before it starts and after it ends, and subtracting the former from the latter. 20130905 05:07:23< vultraz> I take it the second is what that guy did to speed up the default ai 5-10%? 20130905 05:07:45< _8680_> I don’t know what you’re talking about, or what this person did. 20130905 05:08:00< vultraz> don't you subscribe to the dev ml? 20130905 05:08:18< _8680_> I don’t really read email currently. 20130905 05:09:11< _8680_> The Gmail Web interface is too slow on this computer, and my smartphone hasn’t access to the account that I use for Wesnoth stuff. 20130905 05:09:40< _8680_> (Yes, my smartphone is faster.) 20130905 05:09:47< _8680_> But now I must go. 20130905 05:09:52< vultraz> ok 20130905 05:10:45< mattsc> vultraz: yes, that's pretty much how I do it. 20130905 05:10:53< vultraz> which one 20130905 05:10:57< vultraz> :P 20130905 05:11:26< mattsc> Either set up a situation that takes a long time (20 vs. 20 units attacking each other), or by running something that takes a short time many times. 20130905 05:11:32< mattsc> Take times before and after, compare ... 20130905 05:12:33< vultraz> I see 20130905 05:12:59< mattsc> vultraz: this is how I timed this one: http://pastebin.com/5KPCYwrb 20130905 05:13:26< vultraz> oh, I see 20130905 05:13:26< mattsc> It's pretty ugly, because that's just test code, but it does the job. 20130905 05:14:04< mattsc> Setting it up with 20 vs. 20 grunts, it takes 1 - 2 seconds with the old method, and 0.01 - 0.02 seconds with the new one, on average 20130905 05:14:48< vultraz> dat inprovement o_O 20130905 05:14:53< vultraz> improvement* 20130905 05:15:29< mattsc> Yep - but the old code really was crap. It was one of the first AI helper functions I'd ever written. I'd been meaning to rewrite it for a long time. 20130905 05:15:57< vultraz> I wonder if I should benchmark my own lua 20130905 05:16:53< mattsc> It's only worth it if things take a long time. If something takes 1ms and is only needed once, who cares if you can cut it down to a tenth of that. 20130905 05:17:44< vultraz> specifically, https://github.com/Vultraz/NX-RPG/blob/master/lua/gui/inventory.lua 20130905 05:17:51< mattsc> But I should definitely port that change to mainline right away. I'm done testing it with the Simple Attack MAI and the ExpAI. It seems to be working... 20130905 05:18:30< mattsc> Well, is there a noticeable delay when you do any of those things? 20130905 05:19:04< vultraz> it's one big function, js 20130905 05:19:06< vultraz> but um... 20130905 05:19:12< vultraz> lemme check 20130905 05:22:46< vultraz> jeez, this computer.. 20130905 05:22:54< vultraz> gah, can't wait to get my new one on monday 20130905 05:23:23< mattsc> New toys are always fun. :) 20130905 05:24:09< vultraz> inventory actually seems pretty much instant 20130905 05:24:14< vultraz> so I guess that means the code is optimal 20130905 05:24:26< mattsc> I'd expect so since you really only do things once. 20130905 05:24:34< mattsc> per click, I mean 20130905 05:25:36< mattsc> I've been spending more time optimizing code for that AI than on what it does, but that's because there are many things the AI needs to do hundreds or thousands or more times. Even milliseconds add up in that case. 20130905 05:26:04< vultraz> that's actually the code I'm most proud of (well, _8680_ did help with rewriting a few bits, but still probably the most complex code in my addon) 20130905 05:26:20< mattsc> cool! 20130905 05:26:51< mattsc> vultraz: btw, was there anything else concerning the Micro AIs that you had told me about? 20130905 05:27:05< mattsc> Other than the two issues you posted at github 20130905 05:27:16< vultraz> well um... 20130905 05:27:26< vultraz> you dealt with the hext_hop thing 20130905 05:27:30< mattsc> I can't do anything about those, but I think I've worked off the rest of the list 20130905 05:27:32< mattsc> yes 20130905 05:27:37< vultraz> we clarified the stuff about removing BCAs 20130905 05:27:51< mattsc> yes - and fixed a bug in the process 20130905 05:28:03< vultraz> you checked the wolves and said that was the expected behavior 20130905 05:28:15< vultraz> that's all I can think of 20130905 05:28:46< mattsc> ok, that's what I thought. 20130905 05:29:08< mattsc> And cc. those 2 issues: I'm waiting for Crab_ on one of them and on you to reproduce the error on the other 20130905 05:29:11< vultraz> BTW, did you happen to write down my suggestion for a teleport MAI anywehre? 20130905 05:29:31< mattsc> Yes, I have that on my list 20130905 05:29:36< vultraz> ok 20130905 05:30:06< mattsc> I'd really like to get Fred into some sort of working order again though, so that's probably the next thing I'll do. 20130905 05:38:42< vultraz> mattsc: BTW um...even if I do reproduce it, I can't send you a replay, since it's another scenario where I use [deactivate_and_serialize_sides] 20130905 05:39:24< mattsc> But you could send me a save of the turn when it happens, or at least a screengrab of the situation? 20130905 05:40:10< vultraz> ok 20130905 05:40:45< mattsc> Since I have not seen that problem myself, I do need some way of reproducing it, otherwise we're stuck 20130905 05:44:33< vultraz> I'm just annoyed that it plagued me for days then went away when I needed to show it 20130905 05:46:22< mattsc> :) There are languages that have a word for that: http://www.dict.cc/forum-questions/detail-432969-Vorf%C3%BChreffekt.html 20130905 05:47:17< mattsc> I think it is caused by quantum mechanics 20130905 05:47:41< vultraz> heh 20130905 06:56:41-!- mattsc [~mattsc@154.20.32.246] has quit [Quit: Ciao] 20130905 07:28:13-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20130905 07:44:02-!- ancestral [~ancestral@65-128-232-98.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20130905 08:08:53-!- ancestral [~ancestral@65-128-232-98.mpls.qwest.net] has joined #wesnoth-umc-dev 20130905 08:20:40-!- irker675 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20130905 09:17:45-!- ancestral [~ancestral@65-128-232-98.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20130905 09:53:52-!- bumbadadabum [~bumba@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130905 10:26:02-!- _8680_ [~8680@2002:44e1:fb42:0:76de:2bff:fed4:2766] has quit [Ping timeout: 264 seconds] 20130905 12:18:26-!- _8680_ [~8680@2002:4404:712c:0:6cca:299b:302:a910] has joined #wesnoth-umc-dev 20130905 12:18:48-!- _8680_ is now known as Guest73227 20130905 12:52:26-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 246 seconds] 20130905 12:52:58-!- Octalot [~noct@host86-159-77-104.range86-159.btcentralplus.com] has joined #wesnoth-umc-dev 20130905 13:31:55-!- bumbadadabum [~bumba@d155109.upc-d.chello.nl] has quit [Quit: bye] 20130905 16:26:14-!- mattsc [~mattsc@71-19-182-26.dedicated.allstream.net] has joined #wesnoth-umc-dev 20130905 16:29:19-!- fabi_ [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-umc-dev 20130905 16:32:56-!- fabi [~fabi@wesnoth/developer/fendrin] has quit [Ping timeout: 245 seconds] 20130905 16:33:16-!- bumbadadabum [~bumba@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130905 17:08:16-!- skyfaller [~skyfaller@ool-2f11697b.dyn.optonline.net] has joined #wesnoth-umc-dev 20130905 17:08:16-!- skyfaller [~skyfaller@ool-2f11697b.dyn.optonline.net] has quit [Changing host] 20130905 17:08:16-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130905 17:53:32-!- mattsc [~mattsc@71-19-182-26.dedicated.allstream.net] has quit [Quit: Ciao] 20130905 18:57:20-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130905 19:33:34-!- wesbot [~wesbot@wesnoth/bot/wesbot] has quit [Remote host closed the connection] 20130905 19:36:52-!- wesbot [~wesbot@wesnoth/bot/wesbot] has joined #wesnoth-umc-dev 20130905 19:36:55-!- mode/#wesnoth-umc-dev [+v wesbot] by ChanServ 20130905 20:08:43-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130905 20:21:57-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130905 20:34:35-!- mattsc [~mattsc@fw.hia.nrc.ca] has joined #wesnoth-umc-dev 20130905 20:44:47-!- irker364 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20130905 20:44:47< irker364> wesnoth-umc-dev: bumbadadabum * r19231 /trunk/Era_of_Chaos/ (7 files in 3 dirs): 20130905 20:44:47< irker364> wesnoth-umc-dev: EoC: updated MISSILE_FRAME_MUZZLE_FLARE_MISS use the new format for wesnoth 1.11.6+dev and above 20130905 21:28:58-!- skyfaller [~skyfaller@ool-2f11697b.dyn.optonline.net] has joined #wesnoth-umc-dev 20130905 21:28:58-!- skyfaller [~skyfaller@ool-2f11697b.dyn.optonline.net] has quit [Changing host] 20130905 21:28:58-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130905 21:40:13-!- fabi_ is now known as fabi 20130905 21:53:13< irker364> AI-Demos: mattsc master * r4f1bca1 / lua/grunt_rush_Freelands_S1_engine.lua : Fred: only units that have moved count as already holding a zone - http://git.io/a_580w 20130905 23:34:36-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130905 23:34:52-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130905 23:35:07-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130905 23:37:16-!- bumbadadabum [~bumba@d155109.upc-d.chello.nl] has quit [Quit: bye] --- Log closed Fri Sep 06 00:00:38 2013