The speedup is minor because it is only called once a second.
I got a 0.05% speed increase when showing fps.
I do not see why f needed to be declared static, also I reduced the buffer size from 32 to 16 because the maximul length should actually be 12 including the NULL terminator : `429496729.5\0', I rounded up to 16, not sure if I should do that.
The speedup is minor because it is only called once a second. I got a 0.05% speed increase when showing fps. I do not see why f needed to be declared static, also I reduced the buffer size from 32 to 16 because the maximul length should actually be 12 including the NULL terminator : `429496729.5\0', I rounded up to 16, not sure if I should do that.