JarkkoPar / Utility_AI_GDExtension

This repository contains the binaries and example project for the Utility AI GDExtension.
MIT License
72 stars 2 forks source link

There is error when run Tutorial 3 #8

Closed hantaogo closed 8 months ago

hantaogo commented 8 months ago

UtiltyAINQSSearchSpaces.execute_query(time_budget_usec: int)

The first parameter in Tutorial 3 was not passed, resulting in the inability to run. What is the purpose of this parameter, and what value should be passed?

JarkkoPar commented 8 months ago

Thanks for reporting this! It is the time budget for the query in microseconds, i.e. for how long the query is allowed to run.

If you just want to run the query and see the results, set a value like 4000 and it should have updated the results of the query after the method call. If you set a small value, like 10 for instance, you may need to call the method several times to get the results updated (depends on the search space size and your hardware).