"Realtime scaling", by nullmind
|
This is (i belive) the fastest way to draw a scaled image in realtime. It doesnt use any pixel commands.
Tested this on my 900mhz 256MB Geforce2MX (PCI). It can draw a 128x128 image resized to 640x480 in 9ms, ever loop without any pre-rendering or caching.
It does now use a scratch image created in the main game loop :) To save from creating a new image and freeing it everytime. |
| Code | | |