10x faster AI!
Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!
PLEASE DO NOT REPORT BUGS HERE!
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
10x faster AI!
by Korath » 15 Aug 2013, 17:12
Well, not precisely. But it turns out it's pretty easy to manipulate how long the AI spends thinking before it picks a decision, by lying to it about how much time has elapsed since it started.
The attached patch (run it in the same directory as Magic.exe) cuts AI thinking time to 1/10 normal. I haven't noticed any obvious weakening of the AI in a dozen or so games; it still makes roughly the same mix of fairly smart and astoundingly dumb decisions that it did before. Your mileage (and CPU power) may vary, though, so I'll put together something to make it configurable for the next mainline release.
---
This is now in the September 2013 patch, and configurable in config.txt as "AiDecisionTime".
---
This is now in the September 2013 patch, and configurable in config.txt as "AiDecisionTime".
Last edited by Korath on 22 Sep 2013, 04:48, edited 1 time in total.
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: 10x faster AI!
by Gargaroz » 17 Aug 2013, 15:11
Ok, so I'll wait the configurable version before adding it to the release.
If you manage to do it before the end of August, it will go in this month release, otherwise in the next one.
If you manage to do it before the end of August, it will go in this month release, otherwise in the next one.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: 10x faster AI!
by HarlequinCasts » 05 Sep 2013, 20:02
Wow this fix is amazing! I was vaguely aware of how irritatingly slow the AI could be, but this changes everything! <3
-
HarlequinCasts - Posts: 922
- Joined: 07 May 2013, 14:33
- Has thanked: 68 times
- Been thanked: 30 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests