trace(object) is extremely slow?
Posted: 27 Jan 2024, 17:14
After some testing I found that my physics simulation was taking about 120ms each step, after removing the trace() methods, it went down to about 1ms
I had about 12 of them in the whole physics step from start to finish for debugging reasons. Also they were tracing things like array.size() or list.get(0).myParameter, etc.
If i use trace("start") as an example, just a primitive String it only takes 1ms or less, but trace(object) seems to take very long. Can you please confirm if this is true?
Thanks.
I had about 12 of them in the whole physics step from start to finish for debugging reasons. Also they were tracing things like array.size() or list.get(0).myParameter, etc.
If i use trace("start") as an example, just a primitive String it only takes 1ms or less, but trace(object) seems to take very long. Can you please confirm if this is true?
Thanks.