I have a function in eatdrink.ash:
void verbose2(string foo)
{
// print(foo);
}
It gets called a lot, and I uncomment the print statement when I am doing detailed debugging (e.g. it prints the results for every consumable in the game). However, even while it's commented out, it's getting flagged as the biggest net time-spent function in the game. Two questions:
1) Why is a no-op function taking so long to execute?
2) How can I accomplish the same result without the perf hit?
void verbose2(string foo)
{
// print(foo);
}
It gets called a lot, and I uncomment the print statement when I am doing detailed debugging (e.g. it prints the results for every consumable in the game). However, even while it's commented out, it's getting flagged as the biggest net time-spent function in the game. Two questions:
1) Why is a no-op function taking so long to execute?
2) How can I accomplish the same result without the perf hit?