1 Bot causes massive slowdown

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

1 Bot causes massive slowdown

Postby Anonymous » Fri Nov 14, 2003 8:32 pm

Hola,

I'm running a P2/450 with 256 megs of ram that normally runs Zdoom just fine. However, I've got a (very complex) pwad I'm working on. The Pwad runs just fine, no problems, but when I add a single bot to the game, it slows down to almost single-digit framerates.

The bots run fine on the normal levels, so clearly it's a problem with my pwad. Any advice on things that can be done to make it more bot-friendly?

Thanks.
Anonymous
 

Postby Hirogen2 » Sat Nov 15, 2003 1:33 am

Of course... the bot needs path nodes (or some sort of) for the whole level, so performance is inverse to the (complexity*(bots+OtherStuff)).
User avatar
Hirogen2
 
Joined: 19 Jul 2003
Location: Central Germany
Github ID: jengelh
Operating System: RedHat-like Linux (RHEL, Fedora, CentOS, etc) 64-bit
Graphics Processor: Intel (Modern GZDoom)

Postby Bio Hazard » Sat Nov 15, 2003 1:36 am

how do you add path nodes anyway? is there some special thing for it?
User avatar
Bio Hazard
Lord of the Lord of Nitpicking.
 
Joined: 15 Aug 2003
Location: ferret ~/C/ZDL $

Postby Curunir » Sat Nov 15, 2003 2:39 am

I always thought the path nodes were built on the fly when they enter a particular level. And I've never heard of placing special entities in maps to guide bots.
User avatar
Curunir
In heaven everything is fine
 
Joined: 02 Nov 2003
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Postby Hirogen2 » Sat Nov 15, 2003 3:35 am

Yes, they are build on the fly if they cannot be found. I do not know how to generate them, there is probably some utility as some WADs do have precompiled nodes.
User avatar
Hirogen2
 
Joined: 19 Jul 2003
Location: Central Germany
Github ID: jengelh
Operating System: RedHat-like Linux (RHEL, Fedora, CentOS, etc) 64-bit
Graphics Processor: Intel (Modern GZDoom)

Postby HotWax » Sat Nov 15, 2003 3:53 am

AFAIK there is no way to add custom bot nodes (correct me if I'm wrong?). When you first add bots to a level, they will watch the player(s) in the level and learn the movement of the level from him... in theory. Basically, as players move around they drop invisible "bread crumbs" (the bot nodes) that the bots use to move around the map. Thus the more you play, the more they learn the map.

IIRC, there is a cvar (can't remember it right now, I think it's off by default) that allows saving botnodes... somewhere... so that next time you load that level they can pick up where they left off.

IMHO, the bots are still too dumb to be of any real use. Perhaps for deathmatches on very simple levels, but I've never been able to get coop bots to leave the starting area, and even when they are around, they spend most of their time dying rather then helping me kill stuff. :(
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Enjay » Sat Nov 15, 2003 5:17 am

Which version of Zdoom are you running? An old version (forget which) used to have very noticable slowdown when a bot had/used the rocket launcher.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Postby Hirogen2 » Sat Nov 15, 2003 6:12 am

There seems to be no more command to save them. The only ones who contain "node" -- and I am pretty sure that node-saving command had node in it somewhere -- are gennodes and genglnodes, but which are for BSP.
User avatar
Hirogen2
 
Joined: 19 Jul 2003
Location: Central Germany
Github ID: jengelh
Operating System: RedHat-like Linux (RHEL, Fedora, CentOS, etc) 64-bit
Graphics Processor: Intel (Modern GZDoom)

Postby randi » Sat Nov 15, 2003 5:26 pm

You all give the bots too much credit. They are very stupid and just wander the level aimlessly with AI basically equivalent to a regular monsters. The only thing they keep track of on the level is the locations of all the items. In co-op games, if you get too far away from a bot, you'll probably never see it for the rest of the game, because it has no idea how to reach you.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

Postby HotWax » Sat Nov 15, 2003 11:25 pm

randy wrote:You all give the bots too much credit. They are very stupid and just wander the level aimlessly with AI basically equivalent to a regular monsters. The only thing they keep track of on the level is the locations of all the items. In co-op games, if you get too far away from a bot, you'll probably never see it for the rest of the game, because it has no idea how to reach you.


Hrmm, what bots was I thinking of then? :P
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Enjay » Sun Nov 16, 2003 5:59 am

What are these actors, that get listed with dumpclasses, for?

CajunBodyNode
CajunTrace

The only thing I can see any evidinece of something happening when summoning these is with IDDT on twice in the automap, CajunTrace seems to fire an invisible, no damage projectile.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Postby Graf Zahl » Sun Nov 16, 2003 6:06 am

Both of these objects are used internally for some calculations. They both have no specific properties, are both invisible and totally unusable outside the bot code. And, yes, CajunTrace is an invisible projectile.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby HotWax » Sun Nov 16, 2003 8:24 pm

CajunTrace is probably used for determining if there is anything between the bot and the target it's about to fire at . . . or something like that.

As for CajunBodyNode, ya got me. :P
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests