wel the basic putpixel ... does already 4 tests out of the box.cameron wrote:A test will only make the game slow down. I want a performance boost to make the game run faster.
Code: Select all
assert( x >= 0 );
assert( y >= 0 );
assert( x < SCREENWIDTH );
assert( y < SCREENHEIGHT );
Code: Select all
if (x >= 0 && x <= screenwidth && y >= 0 && y <= screenheight)
{
PutPixel (.........);
}
Code: Select all
pSysBuffer[ x + SCREENWIDTH * y ]
read ... http://www.planetchili.net/forum/viewto ... a+blitting