hi,
a few months ago i started making a game (the idea is from an old atari st monochrome game). some of you may remember my various questions in #gp32dev
after a few months break, i continued working on it and it is now very close to be finished.
but i have a few last questions about putting sprites and clockspeed.
i attached two screenshots, the title-screen (running level 40 as a demo in background + title-sprite,pressstart-sprite,info_credits-sprite) and the normal level 40 ingame screenshot.
(the game is about: you control the ship, can move left/right and shoot and you have to shoot all enemies, which are bouncing and flying around)
the problem is that these big sprites on the title screen are slowing down the program appr. 50%
the game is running at 90MHz and i'm using mr.mirko's sdk replacement.
basically (without my stuff) it looks like this:
and i'm using gp_drawSpriteHT for putting sprites.
so is it normal, that these 3 big sprites (actually they are that big) can slow the program down that hard?
i mean, whole emulators run at 90MHz and i'm just drawing a few sprites.
a few months ago i started making a game (the idea is from an old atari st monochrome game). some of you may remember my various questions in #gp32dev
after a few months break, i continued working on it and it is now very close to be finished.
but i have a few last questions about putting sprites and clockspeed.
i attached two screenshots, the title-screen (running level 40 as a demo in background + title-sprite,pressstart-sprite,info_credits-sprite) and the normal level 40 ingame screenshot.
(the game is about: you control the ship, can move left/right and shoot and you have to shoot all enemies, which are bouncing and flying around)
the problem is that these big sprites on the title screen are slowing down the program appr. 50%
the game is running at 90MHz and i'm using mr.mirko's sdk replacement.
basically (without my stuff) it looks like this:
Code:
#include "gp32.h"
#include "backgrnd_bin.h"
u16 *framebuffer[2];
int swapper=0;
void swap_screen()
{
gp_setFramebuffer(framebuffer[swapper],1);
swapper++; if (swapper == 2) swapper=0;
}
int main()
{
int refreshrate=0;
refreshrate=gp_initFramebuffer(framebuffer[0],16,85);
while (1)
{
swap_screen();
memcpy(framebuffer[swapper],backgrnd_bin,320*240*2);
}
}
and i'm using gp_drawSpriteHT for putting sprites.
so is it normal, that these 3 big sprites (actually they are that big) can slow the program down that hard?
i mean, whole emulators run at 90MHz and i'm just drawing a few sprites.