I’m working with the Kinect v2 to capture the skeleton. And then I tried to draw a time counter on the screen using ofTrueTypeFont by printing time. But I’ve just realized that ofTrueTypeFont has been decreasing frame count with a considerable amount which makes my application so slow.
How can I print styled text without any loss? sorry my english.
Hi, the problem is quite evident.
You are loading the font in the draw function. This means that it is reading the font file and loading each time that you are drawing, this is why the performance drops when you activate that part of the code.
Move the following line from the draw() function into the setup() function