Descriptive Problem Summary:
walk_to(ref,trg,0) uses excessive amounts of CPU in pixel movement.
Demo: http://www.angelfire.com/hero/straygames/ByondBugs/ WalkTo_src.zip
Workarounds:
If you give it a distance parameter, ie: walk_to(ref,trg,1), setting the closest distance to be 1 tile away, this will avoid the issue, but provide graphically undesirable results.
ID:120101
Oct 17 2011, 3:21 am
|
|||||||||||||
Resolved
| |||||||||||||
Jan 7 2012, 7:53 am
|
|
This same issue applies to step_to(). Four NPCs attempting to step_to(src,target,0) uses 12+% world.cpu, changing the 0 to a 1 drops them down to 1% usage at most.
|