[fpc-devel] sdlgraph, pre-alpha
jonas.maebe at elis.ugent.be
Wed Aug 22 21:51:55 CEST 2007
On 22 Aug 2007, at 21:18, Micha Nelissen wrote:
> Michael Van Canneyt wrote:
>>> Why is calling via a procvar very much slower than a normal
>>> call ? It's
>>> just an extra memory fetch (hopefully in cache) ?
>> Jonas meant that each pixel is drawn separately. The procvar is
>> not the issue.
> Before me going too far in unknown territory, but isn't that the basis
> for any software implemented graphics routine: drawing pixels ?
Yes, but not with a call and location calculation per pixel (and who
knows what else SLD_putpixel does behind the scenes). And in case of
horizontal lines, you usually draw several pixels at a time (or at
least blit them using a fillchar/word/dword-like routine).
More information about the fpc-devel