[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] VDI clipping



Hey,

If you really really need to do that - I advice you not to (see if you can optimize other stuff instead, if possible) - have a look at Zorros code (zDesk sources).

He has a fairly efficient text rout which generates text in a monochrome buffer which is then blitted to screen. It can be optimized further, but imo the code looks nice.

-- PeP

15 mar 2011 kl. 00.08 skrev m0n0:

Hello guys ,

probably not really the right place to ask... but I guess some people here know a lot about VDI =)

I'm currently improving font rendering within netsurf a bit... I want to make the drawing faster, at least for font renderer which support monochrom glyphs.
My question is: should I calculate clippings for each character myself, or should i just let VDI do the job? As I said, this will be called for each and every character...
but doing the clipping myself takes at least 3 calls to rc_intersect and some grect x = grect y etc.
From the pure source code point of view vs_clip is a lot less to do... but I don't know how much overhead it introduces. First: is the call expensive ( traps involved...)? Second: How expensive is clipping during the raster operation?

Infomation would be nice - as always =) !

Greets,