I'm trying to optimize my software and to do that I need to change the way I store and draw things.
Many people say that fmt is way faster than iostream at doing those things, yet I'm sitting here and trying to understand what I did wrong.
The old code is working:
auto type = actor->GetName();
char name[0x64];
if (type.find("AI") != std::string::npos)
sprintf(name, "AI [%dm]", dist);
The new one isn't:
auto type = actor->GetName();
char name[0x64];
if (type.find("AI") != std::string::npos)
fmt::sprintf("AI [%dm]", dist);
What am I doing wrong?