Speed up game world

Speed up game world

Postby mrdoisis » 09 Nov 2019, 16:27

Hi,

This might be more of a development question.
I'm looking into implementing an AI for STK. I regularly need to measure the performance of the AI by racing through a track and I need a way to quickly simulate a single race.
I've tried tuning the kart speed, but I quickly run into problems with the game's other AI's not being able to handle high velocity.
I've also tried changing the physics step size, but it seem to only affect the kart's handling of turning, leaning, etc.
So I was wondering if there's a way to "collectively speed up the entire world" such that all AI's still drives as they normally would, but where everything just runs faster. Sort of like a "fast-forward" mode.

In other words,
What does it take to speed up the entire game world to allow for faster simulations of AI races?

Please, if I'm in the wrong place, or if you would like a more elaborate explanation, let me know. :)
mrdoisis
 
Posts: 2
Joined: 09 Nov 2019, 16:11

Re: Speed up game world

Postby benau » 09 Nov 2019, 16:33

Try profiling mode, see tools/ai_test
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Speed up game world

Postby mrdoisis » 11 Nov 2019, 09:53

benau {l Wrote}:Try profiling mode, see tools/ai_test


Thank you, Benau, for your response. I looked at the test_track.sh script and found it very helpful! :)
mrdoisis
 
Posts: 2
Joined: 09 Nov 2019, 16:11

Who is online

Users browsing this forum: Google [Bot] and 1 guest