[ian-reeds-games] Re: Tactical Battle 1.11 dev 10

  • From: shaun everiss <sm.everiss@xxxxxxxxx>
  • To: ian-reeds-games@xxxxxxxxxxxxx
  • Date: Tue, 08 Jan 2013 19:02:26 +1300

on the subject of maps.
in the startrek map the resistance map doesn't work passed the first round.
also if an attack value of 0 is set, and you cover the enemy unit how do i control my own unit or my unit group or even see what is in a group if several are on one tile. and ofcause a lot of maps like interglaactic space ships starwas etc have errors in them. I thank a solution would be that enemies can't move to friendly squares and vice versa and attacks can be only 1 square away at minimum but if an attack is 0 then by right unless you choose to you should be able to control your units.

At 11:51 PM 1/7/2013, you wrote:
Hi all!

Dev 10 is here.

Hadi, I've swapped out your number 3.

Carlos, I turned off speech for the AI's turn so it would run as fast as it could and did some performance testing on the zombie strike back map.
It took roughly 20.6 seconds to complete.

After a lot of performance logging I found the problem and added a solution.
It now takes 1 second to complete.

I have one other trick up my sleeve for improving the speed, but it takes a bunch more code and is not as clean so I'll probably skip it for the near term. Though I'll look at it again tomorrow morning, maybe it will be worth doing for the extremely large maps, plus I love performant code.

Austen, this should fix the lag you were seeing on your big maps. The lag would be much worse on very large maps.

This AI speed improvement is the only change for dev 10.

Here is the link for dev 10:
https://dl.dropbox.com/u/43120001/Tactical%20Battle%201.11%20dev%2010.zip

Enjoy!
Ian Reed




Other related posts: