Bug 257 : Loading fonts degrades performance
Last modified: 2005-12-19 08:16




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Piotr Wiƛniewski
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-12-19 06:25
During my programming classes I had to create a program for modelling a
bezier curve from multiple points. When i loaded font to use it in buttons
or simply to display it on the screen, it slowed the program very much.
After exporting to an applet it got worse and older computers (<=1GHz
Processor) are having problems with displaying it correctly. Also I found
out that if you want to display fonts in the applet you should not only
create font in your project directory, but also in main processing
directory. Otherwise the applet will not work. Chceck my program and find
out if it works well. Below is an adress:
Additional Comment #1 From fry 2005-12-19 08:16
using text is slow, particularly if you're scaling it. when using P3D,
textMode(SCREEN) can help performance, or if you have the font installed on
the machine, that will also help. but in general, this is simply the case
and you might consider using noLoop() and redraw() so that you're not
redrawing everything on each frame.

you don't have to put fonts into the processing directory, they only need
to be in the data folder. if you have a sketch that can show that this is
not the case, please post it as a separate bug.