Code: Select all
#include <genesis.h>
int main()
{
SYS_disableInts();
VDP_setScreenWidth320();
VDP_setScreenHeight224();
SYS_enableInts();
while (TRUE)
{
VDP_showFPS(TRUE);
for (int y = 0; y < 28; y++) {
for (int x = 0; x < 40; x++) {
u16 tileIndex = random() % 16;
VDP_setTileMapXY(PLAN_B, TILE_ATTR_FULL(PAL1, FALSE, FALSE, FALSE, tileIndex), x, y);
}
}
VDP_waitVSync();
}
return 0;
}
how to speed up rendering 40*28 tiles?