Hi, I want to track and graph several values over time within Stingray. Ideally, I would be able to show the graph to users in game.
I was told to use the Profiler and record_statistics function but I'm not sure how to code it. Am I supposed to start the Profiler once, record_statistics in the update function, and close Profiler at the end? Or keep everything in the update loop? Also, I'm not sure if using the stingray.Profiler.record_statistics() function will show a graph in-game, or only in the stingray Profiler.
If I could see sample code of how to graph the variable over time using any method (ideally showing in-game), that would be really helpful!