La fréquence du CPU ne fait pas tout malheureusement.
(exemple, la SNES, le CPU tourne entre 1.5 et 3Mhz, ça ne la rend pas facile a émuler pour autant.)
r043v (./35) :
Brunni, la gbc fonctionnais parfaitement avec le son et sans frameskip sur les 133mhz de la gp, plus généralement je jouais sans son à 33mhz (avec un stretch simple qui bouffais pas trop et un frameskip de 1 ou 2)
/*
* Double buffer management.
*/
// Init the double buffering managements.
extern void InitScreen(unsigned short screenWidth, unsigned short screenHeight, unsigned char screenDepth);
// Init the double buffering for TI-Nspire CX.
extern void InitScreenNspireCX();
// Swap the screens.
extern void SwapScreen(void);
/*
* Clear screen management.
*/
// Clear screen with a color.
extern void ClearScreenWithColor(unsigned short int color);
// Clear screen in black.
extern void ClearScreenBlack(void);
// Clear screen in white.
extern void ClearScreenWhite(void);
/*
* Drawing functions.
*/
// Set a pixel with a color.
extern void SetPixel(int x, int y, unsigned short int color);
// Get a pixel color.
extern void GetPixel(int x, int y, unsigned short int color);
// Draw a line with a specific color (Bresenham's line algorithm).
extern void DrawLine(int x0, int y0, int x1, int y1, unsigned short int color);
// Draw a rect.
extern void DrawRect(int x, int y, int width, int height, unsigned short int color);
// Draw a filled rect.
extern void DrawRectFill(int x, int y, int width, int height, unsigned short int color);
// Draw a circle.
extern void DrawCircle(int x, int y, int r, unsigned short int color);
// Draw a sprite.
extern void DrawSprite(int x, int y, int sizeX, int sizeY);