On Fri, 2005-01-14 at 10:08, Karl Ove Hufthammer wrote:
> Albert Cahalan <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
> 
> > Start-up will go faster if some of the work is put
> > in threads. This is particularly true for disk reads.
> 
> Indeed. Tux Paint is beginning to get *really* slow on
> start-up now (and I use --nosysfonts).
> 
> And it will only get worse. (I've spotted many nice images from
> openclipart.org I'd like to include as stamps.)

Those are all cartoonish. The glass, for example,
won't work right on all backgrounds. White is only
a good background for saving printer ink. (and for
working on crummy old CRT monitors that have poor
frequency response)

Try using a Google image search with site:gov or
site:mil in the query. Works produced by the US
federal government are public domain.

Stuff from the UK appears to be usable. It falls
under "crown copyright", and the Queen has made some
allowances for use.

> > When the canvas shows, only the paint tool needs to
> > be ready. Other stuff (stamps, fonts, magic) can
> > continue to load in the background.
> >
> > Three solutions to handle fast-clicking users:
> >
> > a. show the yellow-and-black stripes when the user
> >    clicks on something that isn't ready (this is
> >    what the "Open" tool does now)
> 
> FWIW, I prefer this solution.
> 
> But not *all* stamps have to be loaded to give access
> to the stamp tool, do they?

Sure. Data can be split as:

a. image itself
b. thumbnail
c. sound
d. misc. tiny metadata from *.txt and *.dat

Right now, after you use a text control, all fonts are
discarded. Scolling will load on demand. It works well
enough that I didn't need to pre-load the next few off-screen
fonts for decent scrolling.

Stamps might be the same... or not. I don't know if
scaling a stamp is more or less costly than loading
a font. If scaling is costly, then an extra screen's
worth of thumbnails in both directions should be kept
in memory. Scrolling might seem faster if it didn't
wait for the display update. This is a trick that xterm
normally does for text scrolling.

Sound is needed for on-screen items, pure and simple.
Loading from disk causes latency that you'd notice.
Stamps sounds don't play on scrolling though, so the
sounds can be loaded as stamps appear on the screen.
Evil: load sound as mouse pointer approaches the stamp.

Fonts are more trouble, because they need to be scored
and sorted. Thus, as things load in the background, fonts
should get priority over stamps.


_______________________________________________
Tuxpaint-dev mailing list
[email protected]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to