nanogui: Ways to speed up a simple application?
Subject:
Re: [nanogui] Ways to speed up a simple application?
From:
Michael Schnell ####@####.####
Date:
16 Mar 2009 11:30:32 -0000
Message-Id: <49BE37A4.3010306@lumino.de>
> I wish I knew more about this whole "blit" thing, ...
This is easy :-) .
AFAIK, with "accelerated" graphics you distinguish between
processor-memory-based and "card"-based memory. The CPU only can access
the processor memory directly, but the card memory is behind some driver
using the card's hardware interface and that makes access by the
processor very slow, but allows very fast access by any graphic hardware
function. Bitmaps can be either in the processor memory or in the card
memory. If they are in the card memory, they can either be "on screen"
(visible) or "off-screen" (invisible).
The "bilt" functions the driver provides now copy a bitmap (rectangle)
from one memory location onto another, using the processor if only
processor memory is involved, using some hardware "processor" on the
card, if only card-memory is involved and using the driver
hardware-interface if both are involved.
-Michael