Glorious Discovery!!

May 21, 2008 at 11:23 am 3 comments


I’ve just discovered some great ways of optimising the code in the caveman AI for Caveman Craig. At the moment, I have 100 cavemen in the room with full 60/60 FPS – prior to the optimisation I had 25/60 FPS after just 40 cavemen.

Don’t expect the same results on every system, as I do have a fairly powerful computer. However, you can confidently expect a 100% increase at the minimum!! Yes, I’m very excited.

Caveman Craig 1.4 will be out as soon as the results are in, or if Sandy gives me permission to update the game prior to the results. I am still making adjustments to fix some glitches with the optimisations but they’re very minor. This, along with a new licence, and difficulty increases, will be available very soon.


Edit 1: Those results aforementioned are for cavemen following me, but not doing their own thing. There is a significant decrease in AI activity when they are just following me. When running around and doing their thing, it starts to lag a bit after about 35 cavemen. However, the lag is much more gradual and thus easy to cope with.


Entry filed under: Caveman Craig 1/SE. Tags: , , .

CC Licence Version 1.4 Beta Out

3 Comments Add your own

  • 1. Keymax  |  May 24, 2008 at 1:43 pm

    I noticed that the game starts to lag when an enemy appears, so the problem must be with hunters. They don’t have much to do, though – just find the closest dino and throw the rock. What takes so much time for AI to compute?

  • 2. rhysandrews  |  May 24, 2008 at 2:08 pm

    The problem was with the detection of slopes in the terrain. So, it was with any caveman, however, all hunters walked in a big mass, so the lag wasn’t distributed but clotted into a few frames. It is not their AI, but their slope movement.

    However, this ‘discovery’ I guess I found really fixes that slowness.

  • 3. Doggie  |  June 20, 2008 at 11:06 am

    Somehow i missed the point. Probably lost in translation 🙂 Anyway … nice blog to visit.

    cheers, Doggie!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Get Caveman Craig 2 Here!

Parabox is..

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 17 other followers

From our Twitter..

%d bloggers like this: