craig.biggs_ Posted September 10, 2013 Share Posted September 10, 2013 Hi, This may be dumb question, but I'm looking for a way of obtaining the performance counters provided by Unigine from script. I see that engine.profiler.getValue is able to obtain performance counter values but that seems to be for custom user created performance counters. If I'm say looking to programatically obtain the values that the profiler displays for say "Update" or "Present" or say "RTriangles" and do some processing myself on that data, is there a way of doing that by interrogating the SDK API? If I am able to use engine.profiler.getValue, what are the valid set of keys I can pass to obtain pre-defined Unigine performance counters? thanks Craig Link to comment
craig.biggs_ Posted September 11, 2013 Author Share Posted September 11, 2013 Any feedback on this, Unigine devs? Keep in mind we only have binary version of the SDK so we can't go delving into the code :) Link to comment
frustum Posted September 14, 2013 Share Posted September 14, 2013 The performance counters are not exported into the Unigine Script or C++ API. We have no plans for that. Link to comment
ulf.schroeter Posted September 15, 2013 Share Posted September 15, 2013 Which is bad as this would be the foundation for automatic, script-based world performance testing. Especially for our large simulation worlds this was a must-have-feature for regression testing of world modifications by jumping automaticallx to well-defined test-points (position/orientation/render settings) and gathering/storing performance counter values (also for well-defined customer acceptance tests). By writing these values to some csv file evaluation of performance changes e.g. via Excel was very easy. Therefore I would highly recommend to open performance counters for script-access to allow such kind of performance evaluation like in UNIGINE benchmarks. This should be very easy to implement. something like engine.performance.getCounterNames() for getting array of counter names and engine.performance.getCounterValue(string name) for getting specific counter value. 1 Link to comment
frustum Posted September 15, 2013 Share Posted September 15, 2013 This functions can be easily exported. We haven't seen such requests before. So if this functionally is really required for many customers we can review our roadmap. Link to comment
craig.biggs_ Posted September 15, 2013 Author Share Posted September 15, 2013 Agree with ulf here, this is pretty much our use case for the request. I can't imagine it would be that hard to implement and would certainly help with us doing benchmarking of our scenes. Link to comment
frustum Posted September 24, 2013 Share Posted September 24, 2013 All performance counter will be exported into the script system. Link to comment
demostenes Posted September 28, 2013 Share Posted September 28, 2013 Agree, very usuful for testing. Link to comment
Recommended Posts