Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Follow


MarkusR

Recommended Posts

hi josh,

please take a look in the. Follow function.

there must be something wrong.

this function runs as thread in background until stop is used.

 

5 zombies waste 40 frames if follow is used.

this in my 10x10meter test area.

today i had time to edit the copy of the monster ai script

and disable parts with functions keys to see what happens.

(means skipping the world and physics update loop)

 

ps:i using the beta because its better than the normal version and me is magnetic for issues wink.png

me using the engine since offer at steam.

Link to post

Do you call Follow more than once when the enemies should start following?

 

//Edit.

Is the performance also this bad when you run the release mode?

 

the debug mode is just for debugging and as such much slower.

Link to post
  • 2 weeks later...

non desired rotations when the player is always moving.

I had something like this too. I would have an enemy follow a player then stop when out of range (which was as intended). As long as the player didn't move, the enemy didn't rotate. But when the player moved, the enemy rotated randomly for some reason. I never reported it because it wasn't a big deal for me but wanted to confirm the "glitch."

Link to post
  • 2 weeks later...

I suspect this is being called repeatedly causing the nav system to constantly recalculate paths. I am adding a check so that extra calls to this will have no effect if the entity is already being followed.

Link to post

in theory good but in practice the engine make a short circuit. <- my synonym for loops

 

 

there is a optimize.map

if u hit the key 1,2,3,4,5 it start the zomie with one follow call and the frame rate drop very much.

the framerate without zombies seems also abnormal low.

with sync false is it ~70 frames.

https://drive.google.com/open?id=0B942ivL2fTGcQ0E1Zkc2ZDdhX1U&authuser=0

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Facebook Twitter Youtube Github Steam
×
×
  • Create New...