Post new topic    
Page «  1, 2, 3
Liquid Metal King Slime
Send private message
 
 PostThu Jun 08, 2017 4:25 am
Send private message Reply with quote
guo wrote:
I'm getting major slowdown with just 3 pathfinding enemies on a map. It is a rather large and complex map, however.


That is actually rather surprising for just 3 enemies....


Unless there are a whole ton of other NPCs on the map?

I still have to finish and important optimization with how NPCs check for collisions with other NPCs (including all of them, not just the other pathfinding ones)

Would you mind sending me a copy of your game with a save file on that map? It might be a good test-case for whether or not my optimizations are working :)
Metal King Slime
Send private message
 
 PostThu Jun 08, 2017 5:25 am
Send private message Reply with quote
Download a more recent nightly. The original version was highly inefficient and I would guess that's what you're using. It's much faster now, though still far slower than it could be, especially if there are lots of NPCs on the map. It'll continue to be optimised over time.

You're asking for an NPC that changes its movement type when you get close? It can be scripted pretty simply.
Liquid Metal King Slime
Send private message
 
 PostThu Jun 08, 2017 12:08 pm
Send private message Reply with quote
Oh, yes. I might have been mistaken to assume that you were using the latest nightly. If you were using a nightly even a few days old, then one lonely pathing npc on a big map would bring the engine to it's knees.
Metal Slime
Send private message
 
 PostTue Jun 13, 2017 9:57 pm
Send private message Reply with quote
Ok thanks guys, I'll try the new nightly . Had a busy week at work so unable to reply or check recently. I'll report back later!

Edit: Heads up, I was receiving errors about the latest nightly when using the win installer. The zip package fixed it though. Love the new menu graphics.

Edit2: New nightly works swimmingly - no slowdowns. The NPCs seem to be able to detect you from anywhere on the map. A per-NPC option to change it's "activation radius" would be nice.
vvight.wordpress.com
Display posts from previous:
Page «  1, 2, 3