Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> instead of every frame

It's wasteful to recompute paths every frame, since people don't entirely rethink their gross movements every 16ms. Way back when I coded some monster pathfinding, I also randomized the re-pathing interval to avoid intermittent lag (multithreading wasn't really a thing back then), which also made the monsters behave more realistically.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: